This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] Before: $v^2=\omega^2\left(A^2-\frac{4A^2}9\right)=\frac{5}{9}\omega^2A^2$. After: speed is $3v$ at the same displacement, so $\omega^2\left(A'^2-\frac{4A^2}9\right)=9\cdot\frac59\omega^2A^2=5\omega^2A^2$. $A'^2=5A^2+\frac49A^2=\frac{49}9A^2\Rightarrow A'=\frac{7A}3$. So $n=7$. Answer: 7.