\frac{n(n+1)(2n+1)}{6}+(n+1)^2=\frac{(n+1)((n+1)+1)(2(n+1)+1)}{6}