OFFSET
1,1
COMMENTS
Numbers not of the form 0^2 + 1^2 + 2^2 + ... + m^2 = m*(m + 1)*(2*m + 1)/6.
LINKS
Eric Weisstein's World of Mathematics, Square Pyramidal Number
MATHEMATICA
Module[{nn=6, m}, m=(nn(nn+1)(2nn+1))/6 ; Complement[Range[m], Table[(n(n+1)(2n+1))/6, {n, nn}]]] (* Harvey P. Dale, Aug 22 2020 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ilya Gutkovskiy, Mar 31 2018
STATUS
approved