I wanted to check if the sum $\sum_{n>0}\frac{n!}{n^n}$ converges.
As $n!$ grows faster than $n^n$, I first thought that it would be divergent. But this doesn't seem to be true, as I found out later using wolfram alpha. So the first thing I don't understand, is why it converges, as normally a factorial function grows faster than a polynomial one?
I then tried to use the root test criteria to check the series:
$lim_{n->\infty} \sqrt[n]{|a_n|}=\sqrt[n]{|\frac{n!}{n^n}|}= |\frac{\sqrt[n]n!}{n}| = |\frac{(n(n-1)!)^\frac{1}{n}}{n}|= |\frac{n^{-n}(n-1)!^\frac{1}{n}}{n}| = |\frac{(n-1)!^{-n}}{n^{n+1}}| $
So I think that the numerator goes to $- \infty$ and the denominator goes to $+\infty$, which leads to an undefined form. Therefore I want to differentiate the numerator and denumerator to apply the rule of de l'Hospital, but again I get an undefined form.
Therefore I tried to solve it using another criteria and started from the beginning:
$lim_{n->\infty} |\frac{a_{n+1}}{a_n}|=|\frac{\frac{(n+1)!}{(n+1)^{n+1}}}{\frac{n!}{n^n}}=|\frac{n^n{(n+1)!}}{n!(n+1)^{n+1}}|= |\frac{n^n{(n+1)}}{(n+1)^{n+1}}| = |n^n{(n+1)(n+1)^{-n-1}}| = |n^n(n+1)^{-n}|= |\frac{n^n}{n^n+1}|= |\frac{1}{1+\frac{1}{n^n}}|=1 $
As the value is exactly $1$, I can't say if it converges or not. So what am I doing wrong again. Can it in general be solved with one of these two criteria, and what would be the easiest way to solve it?
You are on the right track. You've just misused the ratio test criterion: \begin{align*} \lim_{n\rightarrow\infty}\left|\frac{a_{n+1}}{a_{n}}\right| = \lim_{n\rightarrow\infty}\left(\frac{n}{n+1}\right)^{n} = \lim_{n\rightarrow\infty}\left(1-\frac{1}{n+1}\right)^{n+1} = \frac{1}{e} < 1 \end{align*}
EDIT
Observe that \begin{align*} \frac{n}{n+1} &= \frac{(n+1)-1}{n+1} = 1 - \frac{1}{n+1} \Longrightarrow\\ \left(\frac{n}{n+1}\right)^{n} & = \left(1 - \frac{1}{n+1}\right)^{n} = \left(1 - \frac{1}{n+1}\right)^{n+1}\left(1 - \frac{1}{n+1}\right)^{-1}\Longrightarrow\\ \lim_{n\rightarrow\infty}\left(\frac{n}{n+1}\right)^{n} & = \lim_{n\rightarrow\infty}\left(1-\frac{1}{n+1}\right)^{n+1}\times\lim_{n\rightarrow\infty}\left(1 - \frac{1}{n+1}\right)^{-1} \end{align*} Given that \begin{align*} \lim_{n\rightarrow\infty}\left(1 - \frac{1}{n+1}\right)^{-1} = 1\quad\text{and}\quad\lim_{n\rightarrow\infty}\left(1 + \frac{1}{n}\right)^{n} = e \end{align*} Can you deduce from here the remaining steps?