Interesting that Excel sees =6/2(1+2) as an invalid formula and will not calculate it (at least on mobile). =6/2*(1+2) returns 9 because it's executing the division and multiplication left to right (6/2=3*3=9).
Google Sheets (mobile) does't like it either and returns an error. =6/2*(1+2) also returns "9".