I got that it would be infinity and diverge, but my answer seems to be incorrect. What did I do wrong?

$$\lim_{n\to\infty}\left(1+\frac3n\right)^{n^2}= \lim_{n\to\infty} \left(1+\frac3n\right)^{n}= \infty$$
I got that it would be infinity and diverge, but my answer seems to be incorrect. What did I do wrong?

$$\lim_{n\to\infty}\left(1+\frac3n\right)^{n^2}= \lim_{n\to\infty} \left(1+\frac3n\right)^{n}= \infty$$
On
The limit is of the form:
$$\lim_{n\to\infty}\left(1+\frac{m}{x}\right)^{nx}~\textrm{with }m=3,n=1$$
We know that the limits in these form have the solution $e^{mn}$. Refer to this link for all the limit-related identities.
For the problem here, the limit is $e^3$.
$$L=\lim_{x\rightarrow \infty }(1+\frac{3}{n})^{n^2/n}=\lim_{x\rightarrow \infty }(1+\frac{3}{n})^n$$ after that take the log for both sides $$\log(L)=n\log(\lim_{x\rightarrow \infty }(1+\frac{3}{n}))$$ by using the Lopital Rule the limit is $e^3>1$
so the series is diverge