STEP-BY-STEP ANSWER:
Step 1: Recognize that in an alkane (CnH2n+2), each carbon atom forms a total of 4 bonds (either with other carbons or hydrogens).
Step 2: Let the number of carbon-carbon bonds be represented by x. Since the carbon skeleton forms a tree, by the tree property, x = n - 1.
Step 3: The remaining bonds from carbon are with hydrogen atoms. Each carbon contributes (4 - its carbon-carbon bonds), so total carbon bonds equal 4n.
Step 4: Taking into account that each carbon-carbon bond is counted twice when summing degrees (once at each carbon), we have: 4n = 2*(carbon–carbon bonds) + (carbon–hydrogen bonds).
Step 5: Substitute x for the carbon–carbon bonds and note that the molecular formula provides 2n+2 hydrogen atoms (i.e., carbon–hydrogen bonds). Thus, 4n = 2(n - 1) + (2n + 2).
Step 6: Simplify: 4n = 2n - 2 + 2n + 2, which confirms 4n = 4n.
Step 7: Finally, the total number of bonds is the sum of the carbon–carbon bonds (n - 1) and the carbon–hydrogen bonds (2n + 2).
Final Answer: The molecule has (n - 1) + (2n + 2) = 3n + 1 bonds.