Corrected and extended by _Lior Manor (lior.manor(AT)gmail.com) _ Sep 19 2002
Corrected and extended by _Lior Manor (lior.manor(AT)gmail.com) _ Sep 19 2002
_Zak Seidov (zakseidov(AT)yahoo.com), _, Sep 13 2002
Corrected and edited by _T. D. Noe (noe(AT)sspectra.com), _, Jan 21 2011
reviewed
approved
proposed
reviewed
All terms were verified by solving elliptic curves. If a(n)>0, then there may be additional values of m that produce squares. See A184763 for more information.
a(n) = smallest Smallest m > n such that Sum_{i=n..m} i^2 is a square, or 0 if no such m exists.
reviewed
proposed
proposed
reviewed
All terms were verified by solving elliptic curves.
a(1) = 24 because 1^2+...+24^2 = b(1)^2 = 70^2, a(2) = 0 because a(2) is not known, a(7) = 29 because 7^2+...+29^2 = b(7)^2 = 92^2. [What does "not known" mean? - N. J. A. Sloane (njas(AT)research.att.com)]
s[n_, k_]:=Module[{m=n+k-1}, (m(m+1)(2m+1)-n(n-1)(2n-1))/6]; mx=40000; Table[k=2; While[k<mx && !IntegerQ[Sqrt[s[n, k]]], k++]; If[k==mx, k=0, n+k-1], {n, 100}]
24, 0, 2, 4, 0, 0, 0, 23, 29, 0, 24, 32, 0, 22898, 22908, 0, 96, 108, 0, 97, 111, 0, 23, 11, 39, 28, 0, 2, 96, 59, 21, 116, 80, 0, 0, 24, 48, 0, 33, 50, 59, 77, 0, 169, 198, 0, 578, 609, 0, 0, 0, 0, 0, 11, 48, 0, 0, 0, 0, 0, 24, 67, 0, 0, 0, 0, 0, 122, 171, 0, 96, 147, 0, 0, 3479, 3533, 0, 0, 2075, 2132, 0, 33, 92, 0, 0, 0, 242, 218, 305, 282, 0, 50, 116, 0, 0, 0, 0, 0, 122, 36481, 194, 36554, 0, 24, 99, 0, 0, 0, 0, 0, 0, 194, 276, 0, 0, 0, 50, 136, 0, 0, 0, 242, 332, 0, 0, 0, 0, 0, 0, 0, 0, 0
Most of the large terms were wrong. Related to A180442, which is still being edited.
See A180442.
s[n_, k_]:=Module[{m=n+k-1}, (m(m+1)(2m+1)-n(n-1)(2n-1))/6]; mx=10^640000; Table[k=2; While[k<mx && !IntegerQ[Sqrt[s[n, k]]], k++]; If[k==mx, k=0]; , n+k, -1], {n, 100}]
Corrected and edited by T. D. Noe (noe(AT)sspectra.com), Jan 21 2011