How would you calculate the molecular formula of a compound?
Divide given molar mass, by "molar mass" which is calculated by you, multiply the answer with all your subscripts, voila
Its very simple actually
First, you need the empirical formula, for example, CH20, then you need, the molar mass of the compound,, which is probably stated in the question
Then, you find the "molar mass" of the compound which is given, CH2O, i.e, 12g/mol+2g/mol+16g/mol= 30g/mol
Then, divide the molar mass by the "molar mass" which YOU calculated
Now, this 5 which you have, multiply all the subscripts in your given empirical formula by 5
Thus, the molecular formula is