|
|
A065992
|
|
Numbers k such that the sum of the nonsquare numbers from 1 to k is a square.
|
|
0
|
|
|
6, 12, 31, 40, 411, 1638, 2352, 9465, 263284, 647498, 1227466, 3179974, 4027111, 5382959, 29444851, 32585267, 50402546, 52610042, 98185445, 3750320631, 14471636075, 79389982446, 157183654414
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
|
|
LINKS
|
|
|
EXAMPLE
|
12 is in the sequence because 2 + 3 + 5 + 6 + 7 + 8 + 10 + 11 + 12 = 64 = 8*8.
|
|
PROG
|
(PARI) isA065992(n) = {local(m); m=floor(sqrt(n)); if(n<2, 0, issquare((n*(n+1)/2)-(m*(m+1)*(2*m+1)/6)))} \\ Michael B. Porter, Feb 02 2010
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Jonathan Ayres (jonathan.ayres(AT)ntlworld.com), Dec 10 2001
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|