This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] $A^2=\begin{bmatrix}a+2&2c&3\\3&a+3c&2a\\ac&1&2+3c\end{bmatrix}$. Comparing the first row of $A^3=A^2A$ with the first row of $A$: $2ac+3=0$ and $a+2+3c=1$. So $ac=-\frac32$ and $a+3c=-1$. Eliminating $c$: $a-\frac9{2a}=-1\Rightarrow2a^2+2a-9=0\Rightarrow a=\frac{-1+\sqrt{19}}2\approx1.68$. This lies in $(1,2]$, so $n=2$. Answer: 2.