Hello and happy New Year to the Stackexchange community. I had trouble solving this seemingly trivial problem and it would be great if you could help me out.
$$\lim_{n \to \infty}(1+\frac{1}{n})^{n}=e$$
This definition of e is given and I want to show that the following identitiy is true as well.
$$\lim_{n \to \infty} (1+\frac{1}{q_{n}})^{q_{n}} = e$$
with $q_{n}$ as a positive rational sequence which diverges to $+\infty$ (therefore, $\lim_{n \to \infty} q_{n}=+\infty$).
I figured that since
$$\lim_{n \to \infty} n = +\infty = \lim_{n \to \infty} q_{n}$$
I could move $\lim_{n \to \infty}$ inside the given expression, so that we have
$$\lim_{n \to \infty}(1+\frac{1}{q_{n}})^{q_{n}}=(1+\frac{1}{\lim_{n \to \infty} q_{n}})^{\lim_{n \to \infty}q_{n}} = (1+\frac{1}{\lim_{n \to \infty} n})^{\lim_{n \to \infty} n} = \lim_{n \to \infty}(1+\frac{1}{n})^{n}=e.$$
However, apperantly, I need to show that the sequence is continuous in order to do this and my course didn't introduce continuity yet. Of course, I could first prove the therom needed to move the limit inside the expression and then show the sequence is continous, but I feel like there is a much more easier and elegant solution to this.
I'm sorry if this is a duplicate of a previously answered question (at least I couldn't find one) and any insight would be appreciated. Thank you very much.
Update — I think I managed to solve it by brute force, but it took me hours and my proof is 2+ pages long. I'm sure that my proof was not the intended one and there must be a simpler one. Anyway, thank you for the help and when I have time, I will update this question with my solution as reference.