Let the first number be \(x\), the second \(y\), and the third \(z\). \[ \therefore \frac{z}{54} = \frac{54}{162} \Rightarrow z = \frac{54 \times 54}{162} = 18 \] Now, \[ \frac{y}{18} = \frac{18}{54} \Rightarrow y = \frac{18 \times 18}{54} = 6 \] Then, \[ \frac{x}{6} = \frac{6}{18} \Rightarrow x = \frac{6 \times 6}{18} = 2 \] \[ \therefore \text{The first number is } 2. \]