The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A094552 Numbers n such that there are integers a < b with a^2+(a+1)^2+...+(n-1)^2 = (n+1)^2+(n+2)^2+...+b^2. 3
52, 100, 137, 513, 565, 1247, 8195, 13041, 18921, 35344, 40223, 65918, 68906, 121759, 132720, 213831, 215221, 235469, 265654, 506049, 520654, 585046, 598337, 817454, 993142, 1339560, 1579353, 2331619, 2843086, 3594812 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
A094550 generalized to squares. Note that equality is attained only for very long sums of squares.
a(31) > 4*10^6. [From Donovan Johnson, Apr 20 2010]
LINKS
EXAMPLE
52 is in this sequence because 7^2+8^2+...+51^2 = 53^2+54^2+...+65^2.
MATHEMATICA
lst={}; Do[i1=n-1; i2=n+1; s1=i1^2; s2=i2^2; While[i1>1 && s1!=s2, If[s1<s2, i1--; s1=s1+i1^2, i2++; s2=s2+i2^2]]; If[s1==s2, AppendTo[lst, n]], {n, 2, 100000}]; lst
CROSSREFS
Sequence in context: A026067 A039475 A274338 * A236461 A044141 A044522
KEYWORD
nonn
AUTHOR
T. D. Noe, May 10 2004
EXTENSIONS
a(14)-a(30) from Donovan Johnson, Apr 20 2010
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 29 07:06 EDT 2024. Contains 372926 sequences. (Running on oeis4.)