1^2+2^2+···n^2=1/6*n*(n+1)*(2n+1);
1^2+2^2+···(2n)^2=1/6*2n*(2n+1)*(4n+1);
2^2+4^2+6^2+···+(2n)^2=4*(1^2+2^2+···+n^2)=4*1/6*n*(n+1)*(2n+1);
1^2+3^2+···+(2n-1)^2=1/6*2n*(2n+1)*(4n+1)-4*1/6*n*(n+1)*(2n+1);
1^2+2^2+···n^2=1/6*n*(n+1)*(2n+1);
1^2+2^2+···(2n)^2=1/6*2n*(2n+1)*(4n+1);
2^2+4^2+6^2+···+(2n)^2=4*(1^2+2^2+···+n^2)=4*1/6*n*(n+1)*(2n+1);
1^2+3^2+···+(2n-1)^2=1/6*2n*(2n+1)*(4n+1)-4*1/6*n*(n+1)*(2n+1);