In my coursebook, on of the steps during a mathematical induction is the following:
$$\frac13n(n+1)(n+2)+(n+2)(n+1) = \left(\frac13n+1\right)(n+1)(n+2).$$
I have tried to reconstruct the authors line of thought, but I end up at $$\frac13n(n+1)(n+2)+(n+2)(n+1) = \left(\frac13n^2+\frac13n\right)\left(\frac13n^2+\frac23n\right)+(n+2)(n+1)$$
What am I missing here?
Any help would be greatly appreciated!
Just factor out $(n+1)(n+2)$.
$$\frac13 n \color{red}{(n+1)(n+2)} + \color{red}{(n+1)(n+2)}=\left(\frac13 n+1\right)\color{red}{(n+1)(n+2)} $$
Also notice that in your working, you have involved $n^4$, which should not happen since we are only working with addition of polynomials of degree at most $3$.