$P(n)$ is the statement $n! < n^n$, where $n$ is an integer greater than $1$.
I found a solution online here (https://people.cs.umass.edu/~barring/cs2... But I don't understand how they got from one step to the next.
One user gave me the explanation:
So we start with: $(k+1)! = (k+1) \cdot k!$
Now, since $P(k)$ is true, $k! < k^k$, therefore: $(k+1) \cdot k! < (k+1) \cdot k^k $
Obviously, $k < (k+1)$, therefore: $(k+1) \cdot k^k < (k+1) \cdot (k+1)^k$
And finally: $(k+1) \cdot (k+1)^k = (k+1)^1 \cdot (k+1)^k = (k+1)^{k+1} $.
What I don't understand is how they got from the 2nd step to the third step.
Please explain it.