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-3 of 3 results.

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

A274469 Numbers missing from A001032 despite satisfying the necessary congruence conditions (see comments).

Original entry on oeis.org

25, 842, 2306, 2402, 2459, 3602, 3650, 3803, 6081, 6242, 6338, 6779, 7058, 7319, 7643, 8088, 8354, 8363, 8402, 8543, 8761, 9122, 10607, 10826, 11257, 11378, 11447, 12203, 12458, 12722, 12984, 13273, 13682, 14162, 14424, 14639, 14738, 15362, 15626, 15698, 16475, 16634
Offset: 1

Views

Author

Keywords

Comments

A001032 consists of those n for which there is a sequence of n consecutive positive 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 odd.
However, these conditions are not sufficient. This sequence consists of the numbers n that satisfy all the congruence conditions but for which there is no sequence of n consecutive positive squares whose sum is a square.
The term 25 is present despite the Pellian equation having a solution with the correct parity, because it leads only to 0^2 + 1^2 + ... + 24^2 = 70^2 and the specification of A001032 requires the squares to be strictly positive. (One may wonder whether this is quite natural, compare A185545.) 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

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

Showing 1-3 of 3 results.