I'm not sure how my professor got from: $$n(n+1)(2n+1)+6(n+1)^2 ~\text{to}~ (n+1)(n(2n+1)+6(n+1))$$
I have a feeling it's an algebra thing but I just can't seem to get it. Would really appreciate the help.
I'm not sure how my professor got from: $$n(n+1)(2n+1)+6(n+1)^2 ~\text{to}~ (n+1)(n(2n+1)+6(n+1))$$
I have a feeling it's an algebra thing but I just can't seem to get it. Would really appreciate the help.
It is an algebra thing.
$\color{blue}{n}\color{green}{(n+1)}\color{blue}{(2n+1)}$ and $\color{red}6\color{green}{(n+1)}^{\color{red}2}$ both have $\color{green}{(n+1)}$ as a common factor. So the common factor can be factored out:
$\color{blue}{n}\color{green}{(n+1)}\color{blue}{(2n+1)} + \color{red}6\color{green}{(n+1)}^{\color{red}2} = \color{green}{(n+1)}[\color{blue}{n}\color{blue}{(2n+1)} + \color{red}6\color{green}{(n+1)}^{\color{red}1}]$