A mass \( M \), attached to a horizontal spring executes simple harmonic motion with amplitude \( A_1 \). When mass \( M \) passes mean position, then a smaller mass \( m \) is attached to it, and both of them together execute simple harmonic motion with amplitude \( A_2 \). Then the value of \( \frac{A_1}{A_2} \) is: