My book has this expression:
\begin{align} ((n(n+1)(2n+7))/6)+(n+1)(n+3) \end{align}
And then the book simplified it, and ended up with the desired expression:
\begin{align} ((n+1)(n+2)(2n+9))/6 \end{align}
I tried to do such simplification. But I ended up with this: \begin{align} (2n^3+15n^2+31n+18)/6 \end{align}
Even though the "value" in my expression is the same as the desired result's, I need the structure of my expression to be the same as well. But I don't understand how to do such.
Here are the full steps my book shows. Of course, I understand that the steps make sense, but I don't understand why did my book take that approach? Is that the only approach possible to reach the desired expression? How was I supposed to know that? I mean, I know how to simplify, but clearly my book is using a different "style" or "path"
\begin{align} ((n(n+1)(2n+7))/6)+(n+1)(n+3)\\ (n(n+1)(2n+7)+6(n+1)(n+3))/6\\ ((n+1)[n(2n+7)+6(n+3)])/6\\ ((n+1)(2n^2 +7n + 6n + 18))/6\\ ((n+1)(n+2)(2n+9))/6 \end{align}
So yes, how should I simplify to get a desired expression structure?