Answer : The formula for an alkane which contained 42 hydrogen atoms is,

Explanation :
The general representation of alkane is,

As we are given the number hydrogen atoms which is equal to 42. Now we have to determine the number of carbon atoms.
As,

Thus, the number of carbon atoms is, 20
Therefore, the formula for an alkane which contained 42 hydrogen atoms is,
