login
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
OFFSET
1,1
COMMENTS
a(24) > 2*10^12. - Donovan Johnson, Jan 16 2011
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
Sequence in context: A119626 A152522 A096356 * A263587 A085611 A122608
KEYWORD
nonn
AUTHOR
Jonathan Ayres (jonathan.ayres(AT)ntlworld.com), Dec 10 2001
EXTENSIONS
a(20)-a(23) from Donovan Johnson, Jan 16 2011
STATUS
approved