Let's say I need to find the limit: $$\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^{n^2}$$ So I know that the limit is $\infty$, but I'm not sure how to show it in situations like this. $$\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^{n^2}=\lim_{n\to\infty}\left(\left(1+\frac{1}{n}\right)^{n}\right)^n=e^{\infty}=\infty$$ I'm pretty sure this one is wrong, because I can't just have the power of infinity. How do I write it down properly?
Also, is $\lim_{n\to\infty}1^n=1$? I know I can't just write $\lim_{n\to\infty}1^n=1^{\infty}$, how should I do it properly?