Step 1: Understanding the Question:
Glucose is a six-carbon aldohexose. In its open-chain form it has a free aldehyde group (-CHO) on carbon 1 and five -OH groups on the other carbons, so we write it as \( \mathrm{CH_2OH(CHOH)_4CHO} \).
We are asked for two separate conversions: the aldehyde group must react with phenylhydrazine, and the whole molecule must be reduced down to the straight-chain alkane.
Step 2: Glucose to glucose phenyl hydrazone.
An aldehyde group condenses with the -NH2 end of phenylhydrazine and loses one molecule of water. This gives a C=N bond, the hydrazone. Only one mole of phenylhydrazine is used here, so only the -CHO group reacts and the five -OH groups are untouched.
\[ \mathrm{CH_2OH(CHOH)_4CHO} + \mathrm{C_6H_5NHNH_2} \longrightarrow \mathrm{CH_2OH(CHOH)_4CH{=}NNHC_6H_5} + \mathrm{H_2O} \]
The product on the right is glucose phenyl hydrazone.
Step 3: Glucose to n-hexane.
Hydroiodic acid is a strong reducing agent. On prolonged heating with HI, every -OH group and the -CHO group of glucose are reduced, and the carbon skeleton comes out as an unbranched alkane with six carbon atoms.
HI is oxidised to iodine in the process, and each of the six oxygen atoms leaves as water. Counting atoms, 14 moles of HI are needed for each mole of glucose.
\[ \mathrm{C_6H_{12}O_6} + 14\,\mathrm{HI} \xrightarrow{\ \Delta\ } \mathrm{CH_3CH_2CH_2CH_2CH_2CH_3} + 6\,\mathrm{H_2O} + 7\,\mathrm{I_2} \]
Atom check: left side has 6 C, 26 H, 6 O and 14 I; the right side has 6 C, 14 + 12 = 26 H, 6 O and 14 I. The equation is balanced.
This reaction also proves that all six carbon atoms of glucose lie in one straight chain.
Final Answer:
Glucose reacts with phenylhydrazine to give glucose phenyl hydrazone, and prolonged heating with HI reduces it to n-hexane.
\[ \boxed{\mathrm{CH_2OH(CHOH)_4CHO} \xrightarrow{\mathrm{C_6H_5NHNH_2}} \mathrm{CH_2OH(CHOH)_4CH{=}NNHC_6H_5}, \qquad \mathrm{C_6H_{12}O_6} \xrightarrow{\mathrm{HI},\ \Delta} n\text{-}\mathrm{C_6H_{14}}} \]