- backgrounded on the fact that the difference of two consecutive squares is an odd number:
$(n+1)^2-n^2=2n+1$
the difference of two consecutive odd numbers is always $2$ thus the self-saying technique.
So when we proceed to find a square $n^2$ we sum up all odd numbers from 1 to $2n-1$ which is an arithmetic sequence of distance 2.
$n^2=\frac{n(2n)}{2}=\frac{\frac{(2n)(2n)}{2}}{2}=\frac{\frac{(2n-1)(2n)}{2}+n}{2}=\frac{\binom{2n}{2}+n}{2}$
Also we note that
$n^2=\frac{\frac{(2n)(2n)}{2}}{2}=\frac{\frac{(2n+1)(2n)}{2}-n}{2}=\frac{\binom{2n+1}{2}-n}{2}$
Summing up the two sums of two formulas $$\sum_n{\frac{\binom{2i}{2}+n}{2}}+\sum_n{\frac{\binom{2i+1}{2}-n}{2}}=\sum_n{\frac{\binom{2i}{2}+\binom{2i+1}{2}}{2}}=\sum_{2n+1}{\frac{\binom{i}{2}}{2}}=2\sum{i^2}$$ is just the sum of values in second column of pascal triangle (even and odd binomials) until $2n+1$, divided by 2.
1
1 1
1 2 |1 |
1 3 |3 | 1
1 4 |6 | 4 1
1 5 |10| 10 5 1
1 6 |15| 20 15 6 1
. . \ \
. . \ \
. . \ \
1 7 21 \35\ . . . .
Summing up the second column will result in the next row/column situated pascal value, which is known to be $\binom{2n+2}{3}$
So ... $$2\sum_n{i^2}=\frac{\binom{2n+2}{3}}{2}=\frac{\frac{2n(2n+1)(2n+2)}{6}}{2}$$