How do you calculate the following limits?
$$\lim_{n \to \infty} \left(1 + \frac{1}{n!}\right)^n$$ $$\lim_{n \to \infty} \left(1 + \frac{1}{n!}\right)^{n^n}.$$
I really don't have any clue about how to proceed: I know the famous limit that defines $e$ ($\lim_{n \to \infty} \left(1 + \frac{1}{n}\right)^n=e$), but the factorials (and the exponent of the second one) here throw me off. Any ideas?
HINT: $$ \lim_{n \to \infty} \left(1 + \frac{1}{n!}\right)^n=\lim_{n \to \infty} \left(\left(1 + \frac{1}{n!}\right)^{n!}\right)^{n/n!} $$ and the inner limit is $e$, hence the final one is 1. The second case is similar.