OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(13)=15 because floor(sqrt(13))=3, floor(sqrt(2*13))=5 and (4*4 - 13) + (5*5 - 13) = 15.
MATHEMATICA
Table[Sum[k^2 - n , {k, 1 + Floor[Sqrt[n]], Floor[Sqrt[2*n]]}], {n, 1, 100}] (* G. C. Greubel, Aug 15 2018 *)
PROG
(PARI) for(n=1, 100, print1(sum(k=1+floor(sqrt(n)), floor(sqrt(2*n)), k^2 -n), ", ")) \\ G. C. Greubel, Aug 15 2018
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Joe K. Crump (joecr(AT)carolina.rr.com)
EXTENSIONS
Data corrected and terms a(64) onward added by G. C. Greubel, Aug 15 2018
STATUS
approved