Assuming this is
n
Sum{k[sup:2bsvdywq]2[/sup:2bsvdywq]-(k+1)[sup:2bsvdywq]2[/sup:2bsvdywq]}
k=0
you have 2 options.
(1) The sum of k[sup:2bsvdywq]2[/sup:2bsvdywq] is n(n+1)(2n+1)/6 since it is irrelevant whether you start from 0 or 1.
The sum of (k+1)[sup:2bsvdywq]2[/sup:2bsvdywq] from k=0 is the sum of i[sup:2bsvdywq]2[/sup:2bsvdywq] from i=1 to n+1, where i=k+1,
so that sum is the same as the first one with n replaced by n+1.... (n+1)(n+2)(2n+3)/6.
Subtracting these sums gives the answer in terms of n.
(2) Multiply out (k+1)[sup:2bsvdywq]2[/sup:2bsvdywq] to get k[sup:2bsvdywq]2[/sup:2bsvdywq]+2k+1.
Now subtracting leaves you with the sum of -(2k+1) from 0 to n, which is easier.
Both give you the same result which you should work out.