The general formula of alkanes is CnH2n+2
Let's apply the formula for the compound CH2O. Here C = 1, H = 2. But from the alkane general formula, H should have been equal to 2n+2 = 4. The calculation is as follows:
2n+2
= 2(1)+2
= 2+2
= 4
Let's apply the formula for the compound C3H4. Here C = 3, H = 4. But from the alkane general formula, H should have been equal to 2n+2 = 8. The calculation is as follows:
2n+2
= 2(3)+2
= 6+2
= 8
And now, let's apply the formula for the compound C6H14. Here C = 6, H = 14. This fits the number of C and H atoms calculated from the general alkane formula.
2n+2
= 2(6)+2
= 12+2
= 14
As the formula CnH2n+2 fits the compound C6H14 as calculated above, we can say that C6H14 is an alkane.
Hope this helps!