Prove that $1 \cdot 1!+2 \cdot 2!+\cdots+n \cdot n!=(n+1)!-1$ whenever $n$ is a positive integer.
Basis step:
$P(1)$ is true because $1 \cdot 1!=(1+1)!-1$ evaluate to $1$ on both sides.
Inductive step:
We assume that $1 \cdot 1!+2 \cdot 2!+\cdots+k \cdot k!=(k+1)!-1$ for some positive integer $k$.
So under this assumption, it must be shown that $P(k+1)$ is true.
$$1 \cdot 1!+2 \cdot 2!+\cdots+k \cdot k!+(k+1) \cdot (k+1)!=(k+1)!-1+(k+1) \cdot (k+1)!$$
then we have that
$$(k+1)!-1+(k+1) \cdot (k+1)!=(k+1)!(k+2)-1=(k+2)!-1$$
My question is how my teacher got the last step?
$$(k+1)!-1+(k+1) \cdot (k+1)!=(k+1)!(k+2)-1=(k+2)!-1$$
$$(k+1)!-1+(k+1)(k+1)! =$$ $$=(k+1)!+(k+1)(k+1)! -1=$$ $$=(k+1)![1+(k+1)] -1=$$ $$=(k+1)![k+2] -1=(k+2)!-1$$