Step 1: Time period of S.H.M.
The time period \( T \) of simple harmonic motion is given by:
\[
T = 2\pi \sqrt{\frac{m}{k}}
\]
where \( m \) is the mass and \( k \) is the spring constant.
Step 2: Relating the change in mass to the new time period.
Let the new mass be \( M + m \), and the new time period becomes \( \frac{T}{3} \). The time period for the new mass is:
\[
\frac{T}{3} = 2\pi \sqrt{\frac{M + m}{k}}
\]
Step 3: Setting up the ratio.
Now, we have two equations for time periods:
\[
T = 2\pi \sqrt{\frac{M}{k}} \quad \text{and} \quad \frac{T}{3} = 2\pi \sqrt{\frac{M + m}{k}}
\]
Step 4: Solving for the ratio \( \frac{M}{m} \).
Squaring both sides of the equations, we get:
\[
T^2 = 4\pi^2 \frac{M}{k} \quad \text{and} \quad \frac{T^2}{9} = 4\pi^2 \frac{M + m}{k}
\]
Step 5: Solving for \( \frac{M}{m} \).
Taking the ratio of these two equations:
\[
\frac{T^2}{9} \div T^2 = \frac{M + m}{M}
\]
\[
\frac{1}{9} = \frac{M + m}{M} = 1 + \frac{m}{M}
\]
\[
\frac{m}{M} = \frac{1}{8}
\]
Thus, the ratio \( \frac{M}{m} = \frac{9}{16} \), which corresponds to option (D).