Step 6: Calculate the total number of hydrogen atoms. Each carbon in a saturated hydrocarbon typically bonds with enough hydrogens to make 4 bonds. For 7 carbons, the formula is CnH(2n+2). Here, n = 7, so H = 2(7) + 2 = 16 hydrogens (H16).
Step 7: Write the molecular formula. Combine the total carbons and hydrogens to get C7H16.