cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-4 of 4 results.

A056131 Sequence A001033 gives the numbers n such that the sum of the squares of n consecutive odd numbers x^2 + (x+2)^2 + ... +(x+2n-2)^2 = k^2 for some integer k. For each n, this sequence gives the least value of x.

Original entry on oeis.org

1, 27, 27, 91, 151, 225, 31, 67, 14037, 47, 119, 4177, 165, 103, 3599, 291, 11467887, 3089, 1297, 379, 57, 131, 110311, 153, 2637, 353, 163, 1679, 1211, 995, 54863, 105, 43, 615, 439, 15, 12955, 2263, 11661, 1867, 1281, 1433, 46671, 303, 21139, 324545, 4159, 343803
Offset: 1

Views

Author

Robert G. Wilson v, Aug 04 2000

Keywords

Examples

			995 is a term because the sum of the squares of 400 consecutive odd numbers beginning with 995 is 28260^2.
		

Crossrefs

Extensions

Corrected and extended by T. D. Noe, Oct 24 2007
Term corresponding to 1024 in A001033 was missing from b-file. Christopher E. Thompson, Feb 05 2016

A056132 Sequence A001033 gives the numbers n such that the sum of the squares of n consecutive odd numbers x^2 + (x+2)^2 + ... +(x+2n-2)^2 = k^2 for some integer k. For each n, this sequence gives the least value of k.

Original entry on oeis.org

1, 172, 265, 715, 1407, 2002, 808, 1241, 139195, 1570, 2739, 52614, 4511, 3953, 52689, 6986, 178033207, 52094, 24485, 10416, 6118, 7667, 1889970, 8283, 52271, 13143, 10697, 40934, 32095, 28260, 1117797, 13253, 12987, 24926, 23276, 14329
Offset: 1

Views

Author

Robert G. Wilson v, Aug 04 2000

Keywords

Crossrefs

Extensions

Corrected and extended by T. D. Noe, Oct 24 2007
Term corresponding to 1024 in A001033 was missing from b-file. Christopher E. Thompson, Feb 05 2016

A274470 Numbers missing from A001033 despite satisfying the necessary congruence conditions (see comments).

Original entry on oeis.org

4, 564, 1284, 2308, 3601, 7044, 7057, 7513, 8628, 9168, 9412, 10561, 10852, 11257, 12436, 13897, 14113, 14388, 14425, 16144, 16692, 16753, 17124, 17257, 17737, 18064, 18433, 18708, 19408, 19428, 20628, 20688, 20752, 20788, 20977, 21073, 23668, 25153, 27193, 28212, 28228
Offset: 1

Views

Author

Keywords

Comments

A001033 consists of those n for which there is a sequence of n consecutive positive odd squares whose sum is a square. For the associated Pellian equation, see A134419. The necessary congruence conditions described in A274471 apply here:
(defining x||y to mean x|y and x and y/x are coprime)
if 3^e||n with e>0, then e is odd and (n/3^e)=2 (mod 3);
if p^e||n with p=5 or 7 (mod 12), then e is even;
if 3^e||(n+1) with e>0, then e is odd;
if p^e||(n+1) with p=3 (mod 4) and p>3, then e is even.
In addition, in order that the Pellian equation has solutions of the correct parity, one must have:
if 2^e||n with e>0, then e is even;
if n is odd, then n=1 (mod 8).
However, these conditions are not sufficient. This sequence consists of the numbers n that satisfy all of the congruence conditions but for which there is no sequence of n consecutive positive odd squares whose sum is a square.
The term 4 is present despite the Pellian equation having a solution with the correct parity, because it leads only to (-1)^2 + 1^2 + 3^2 + 5^2 = 6^2, and the specification of A001033 disallows squares of negative numbers. In every other case the Pellian equation lacks solutions with the right parity. Note however that it may still have solutions with the opposite parity (this can happen only if n=1 mod 8) and so this sequence is not a subsequence of A274471.

Crossrefs

A134419 Numbers n for which the generalized Pell equation x^2 - n*y^2 = n(n-1)(n+1)/3 has an integer solution for x and y.

Original entry on oeis.org

1, 2, 4, 11, 16, 23, 24, 25, 26, 33, 47, 49, 50, 52, 59, 64, 73, 74, 88, 96, 97, 100, 107, 121, 122, 146, 148, 169, 177, 184, 191, 193, 194, 196, 218, 239, 241, 242, 244, 249, 256, 276, 289, 292, 297, 299, 311, 312, 313, 337, 338, 347, 352, 361, 362, 376, 383
Offset: 1

Views

Author

T. D. Noe, Oct 25 2007

Keywords

Comments

This generalized Pell equation appears in the solution of problems posed in A001032 (and A001033): numbers n such that the sum of squares of n consecutive (odd) positive integers is a square. This sequence is the union of A001032, A001033 and the number 4, which is not a solution to either problem. When n is a square > 1 and not divisible by 3, then the equation has only a finite number of solutions; otherwise it has an infinite number of solutions.
For an n in this sequence, consider solutions with x>0 and y>n. (For n=4, there will be no such solutions.) If y-n+1 is even, then n is in A001032, the n consecutive positive integers begin with (y-n+1)/2 and the sum of the squares is x/2. If y-n+1 is odd, then the n is in A001033, the n consecutive odd positive integers begin with y-n+1 and the sum of the squares is x. For some n, such as 33, there are solutions y1 and y2 such that y1-n+1 is even and y2-n+1 is odd. In this case, n is in both A001032 and A001033.
The reason that 4 is not in A001033 is that there is no sequence of 4 consecutive positive odd squares that add to a square. However, there is a sequence of 4 consecutive odd integers whose squares add up to a square: (-1)^2 + 1^2 + 3^2 + 5^2 = 6^2. - Thomas Andrews, Feb 22 2011

Crossrefs

Programs

  • Mathematica
    t={}; n=0; While[Length[t]<200, n++; If[Reduce[x^2-n*y^2==n(n^2-1)/3, {x,y}, Integers] =!= False, AppendTo[t,n]]]; t
Showing 1-4 of 4 results.