<s>[INST] Explaining an algebra step in $ \frac{n^2(n+1)^2}{4} + (n+1)^3 = \frac{(n+1)^2}{4}(n^2+4n+4)$ I have encountered this step in my textbook and I do not understand it, could someone please list the intermediate steps?
$$ \frac{n^2(n+1)^2}{4} + (n+1)^3 = \frac{(n+1)^2}{4}(n^2+4n+4). $$
Thanks, 
 [/INST] Take out the common factor $(n+1)^{2}$ and simplify. So you get $$ (n+1)^{2} \cdot \biggl[ \frac{n^{2}}{4} + (n+1)\Bigr] = (n+1)^{2} \cdot \biggl[ \frac{n^{2}+4n + 4}{4}\biggr]$$
</s>