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

A254934 Fundamental positive solution x = x1(n) of the first class of the Pell equation x^2 - 2*y^2 = -A007519(n), n>=1 (primes congruent to 1 mod 8).

Original entry on oeis.org

1, 3, 5, 3, 1, 7, 5, 7, 3, 1, 9, 13, 5, 1, 15, 7, 13, 17, 1, 11, 19, 3, 1, 17, 11, 21, 9, 7, 11, 17, 21, 5, 1, 23, 11, 27, 9, 7, 5, 3, 19, 11, 23, 27, 7, 31, 1, 13, 25, 19, 33, 7, 5, 21, 31, 25, 9, 29, 5, 15, 27, 13, 31, 11, 7, 17, 3, 37, 41, 31, 19, 25, 7, 35, 5, 17, 33, 13, 21, 19, 45, 25, 3
Offset: 1

Views

Author

Wolfdieter Lang, Feb 18 2015

Keywords

Comments

For the corresponding term y1(n) see A254935(n).
For the positive fundamental proper (sometimes called primitive) solutions x2(n) and y2(n) of the second class of this (generalized) Pell equation see A254936(n) and A254937(n).
The present solutions of this first class are the smallest positive ones.
See the Nagell reference Theorem 111, p. 210, for the proof of the existence of solutions (the discriminant of this binary quadratic form is +8 hence it is an indefinite form with an infinitude of solutions if there exists at least one).
See the Nagell reference Theorem 110, p. 208, for the proof that there are only two classes of solutions for this Pell equation, because the equation is solvable and each prime from A007519 does not divide 4.
The present fundamental solutions are found according to the Nagell reference Theorem 108a, p. 206-207, adapted to the case at hand, by scanning the following two inequalities for solutions x1(n) = 2*X1(n) + 1 and y1(n) = 2*Y1(n) + 1 (because even y is out in this Pell equation). The intervals to be scanned are identical for X1(n) and Y1(n), namely [0, floor((sqrt(p(n) - 1)/2)] with p(n) = A007519(n).
The general positive proper solutions are for both classes obtained by applying positive powers of the matrix M = [[3,4],[2,3]] on the fundamental positive column vectors (x(n),y(n))^T. The n-th power M^n = S(n-1, 6)*M - S(n-2, 6) 1_2 , where 1_2 is the 2 X 2 identity matrix and S(n, 6), with S(-2, 6) = -1 and S(-1, 6) = 0 is the Chebyshev S-polynomial evaluated at x = 6, given in A001109(n).
The least positive x solutions (that is the ones of the first class) for the primes +1 and -1 (mod 8) together (including prime 2) are given in A255235.

Examples

			The first pairs [x1(n), y1(n)] of the fundamental positive solutions of this first class are (the prime A007519(n) is listed as first entry):
[17, [1, 3]], [41, [3, 5]], [73, [5, 7]],
[89, [3, 7]], [97, [1, 7]], [113, [7, 9]],
[137, [5, 9]], [193, [7, 11]], [233, [3, 11]],
[241, [1, 11]], [257, [9, 13]], [281, [13, 15]],
[313, [5, 13]], [337, [1, 13]], [353, [15, 17]],
[401, [7, 15]], [409, [13, 17]], [433, [17, 19]],
[449, [1, 15]], [457, [11, 17]], [521, [19, 21]],
[569, [3, 17]], [577, [1, 17]], [593, [17, 21]],
[601, [11, 19]], [617, [21, 23]], [641, [9, 19]],
[673, [7, 19]], [761, [11, 21]], [769, [17, 23]],
...
n=1: 1^2 - 2*3^2 = 1 - 18 = -17, ...
		

References

  • T. Nagell, Introduction to Number Theory, Chelsea Publishing Company, New York, 1964.

Crossrefs

Cf. A007519 (primes == 1 mod 8), A005123 (8k+1 is prime).
Cf. A254935 (corresponding y1 values), A254936 (x2 values), A254937 (y2 values), A254938, A255232, A255235, A254760.

Programs

  • PARI
    apply( {A254934(n, p=A007519(n))=Set(abs(qfbsolve(Qfb(-1,0,2), p,1)))[1][1]}, [1..77]) \\ The 2nd optional arg allows to directly specify the prime. - M. F. Hasler, May 22 2025

Formula

a(n)^2 - 2*A254935(n)^2 = -A007519(n), n >=1, gives the smallest positive (proper) solution of this (generalized) Pell equation.

Extensions

More terms from M. F. Hasler, May 22 2025

A254935 Fundamental positive solution y = y1(n) of the first class of the Pell equation x^2 - 2*y^2 = -A007519(n), n>=1 (primes congruent to 1 mod 8).

Original entry on oeis.org

3, 5, 7, 7, 7, 9, 9, 11, 11, 11, 13, 15, 13, 13, 17, 15, 17, 19, 15, 17, 21, 17, 17, 21, 19, 23, 19, 19, 21, 23, 25, 21, 21, 27, 23, 29, 23, 23, 23, 23, 27, 25, 29, 31, 25, 33, 25, 27, 31, 29, 35, 27, 27, 31, 35, 33, 29, 35, 29, 31, 35, 31, 37, 31, 31, 33, 31, 41, 43, 39, 35, 37, 33, 41, 33, 35, 41
Offset: 1

Views

Author

Wolfdieter Lang, Feb 18 2015

Keywords

Comments

For the corresponding term x1(n) see A254934(n).
See A254934 also for the Nagell reference.
The least positive y solutions (that is the ones of the first class) for the primes +1 and -1 (mod 8) together (including prime 2) are given in A255246.

Examples

			See A254934.
n = 3: 5^2 - 2*7^2 = 25 - 98 = -73.
		

Crossrefs

Cf. A007519 (primes == 1 mod 8), A005123 (8k+1 is prime).
Cf. A254934 (corresponding x1 values), A254936 (x2 values), A254937 (y2 values), A254938 (same for primes == 7 mod 8), A255232 (y2 values, halved).

Programs

Formula

A254934(n)^2 - 2*a(n)^2 = -A007519(n) gives the smallest positive (proper) solution of this (generalized) Pell equation.

Extensions

More terms from M. F. Hasler, May 22 2025

A254937 Fundamental positive solution y = y2(n) of the second class of the Pell equation x^2 - 2*y^2 = -A007519(n), n>=1 (primes congruent to 1 mod 8).

Original entry on oeis.org

7, 9, 11, 15, 19, 13, 17, 19, 27, 31, 21, 19, 29, 37, 21, 31, 25, 23, 43, 29, 25, 45, 49, 29, 35, 27, 39, 43, 41, 35, 33, 53, 61, 35, 47, 33, 51, 55, 59, 63, 43, 53, 41, 39, 61, 37, 73, 55, 43, 49, 39, 67, 71, 51, 43, 49, 69, 47, 77, 63, 51, 67, 49, 71, 79, 65, 87, 49, 47, 55, 67, 61, 85, 53
Offset: 1

Views

Author

Wolfdieter Lang, Feb 18 2015

Keywords

Comments

The corresponding positive fundamental solution x2(n) of this second class solutions is given in A254936(n).
See the comments and the Nagell reference in A254934.

Examples

			n = 2: 11^2 - 2*9^2 = 121 - 162 = -41.
a(2) = -(2*3 - 3*5) = 9.
See also A254936.
		

Crossrefs

Cf. A007519 (primes == 1 mod 8), A254936 (x2-values), A254934 (first (class) solution x1), A254935 (y1), A255234 (y2/2 for primes == 7 mod 8), A255248, A254760.

Programs

  • PARI
    apply( {A254937(n, p=A007519(n))=n=Set(abs(qfbsolve(Qfb(-1, 0, 2), p, 1)))[1]*[-2, 3]~}, [1..77]) \\ The 2nd optional arg allows to directly specify the prime. - M. F. Hasler, May 22 2025

Formula

A254936(n)^2 - 2*a(n)^2 = -A007519(n) gives the second smallest positive (proper) solution of this (generalized) Pell equation.
a(n) = -(2*A254934(n) - 3*A254935(n)), n >= 1.

Extensions

More terms from M. F. Hasler, May 22 2025

A255233 Fundamental positive solution x = x2(n) of the second class of the Pell equation x^2 - 2*y^2 = -A007522(n), n >= 1 (primes congruent to 7 mod 8).

Original entry on oeis.org

5, 7, 13, 9, 21, 11, 17, 29, 19, 15, 31, 37, 17, 27, 33, 23, 29, 21, 41, 47, 37, 23, 43, 33, 49, 55, 51, 31, 41, 69, 53, 29, 43, 59, 35, 31, 45, 61, 41, 67, 85, 57, 47, 63, 43, 53, 35, 75, 93, 37, 71, 61, 83, 47, 89, 39, 73, 53, 63, 79, 49, 85, 69, 97, 103, 109, 55, 65, 47, 77, 67, 83, 49
Offset: 1

Views

Author

Wolfdieter Lang, Feb 18 2015

Keywords

Comments

The corresponding term y = y2(n) of this fundamental solution of the second class of the (generalized) Pell equation x^2 - 2*y^2 = -A007522(n) = -(1 + A139487(n)*8) is given in 2*A255234(n).
For comments and the Nagell reference see A254938.

Examples

			The first pairs [x2(n), y2(n)] of the fundamental positive solutions of this second class are (the prime A007522(n) appears as first entry):
  [7, [5, 4]], [23, [7, 6]], [31, [13, 10]],
  [47, [9, 8]], [71, [21, 16]], [79, [11, 10]], [103, [17, 14]], [127, [29, 22]],
  [151, [19, 16]], [167, [15, 14]],
  [191, [31, 24]], [199, [37, 28]],
  [223, [17, 16]], [239, [27, 22]],
  [263, [33, 26]], [271, [23, 20]],
  [311, [29, 24]], [359, [21, 20]],
  [367, [41, 32]], [383, [47, 36]],
  [431, [37, 30]], [439, [23, 22]],
  [463, [43, 34]], [479, [33, 28]], ...
n= 4: 9^2 - 2*(2*4)^2 = -47 = -A007522(4).
a(4) = -(3*5 - 4*(2*3)) = 24 - 15 = 9.
		

Crossrefs

Cf. A007522 (primes == 7 mod 8), A139487 (8k+7 is prime).
Cf. 2*A255234 (corresponding y2 values), A254938 (x1 values), 2*A255232 (y2 values), A255247, A254936.

Programs

  • PARI
    apply( {A255233(n, p=A007522(n))=Set(abs(qfbsolve(Qfb(-1, 0, 2), p, 1)))[1]*[-3,4]~}, [1..88]) \\ The 2nd optional arg allows to directly specify the prime. - M. F. Hasler, May 22 2025

Formula

a(n)^2 - 2*(2*A255234(n))^2 = -A007522(n) gives the second smallest positive (proper) solution of this (generalized) Pell equation.
a(n) = -(3*A254938(n) - 4*2*A255232(n)), n >= 1.

Extensions

More terms from Colin Barker, Feb 23 2015
Double-checked and extended by M. F. Hasler, May 22 2025

A255247 Fundamental positive solution x = x2(n) of the second class of the Pell equation x^2 - 2*y^2 = -A001132(n), n>=1 (primes congruent to {1,7} mod 8).

Original entry on oeis.org

5, 9, 7, 13, 11, 9, 21, 13, 11, 19, 25, 17, 15, 29, 21, 19, 15, 31, 23, 37, 17, 35, 27, 41, 25, 33, 23, 21, 29, 37, 49, 23, 21, 41, 47, 39, 29, 37, 25, 23, 57, 35, 43, 33, 49, 55, 27, 59, 65, 33, 51, 43, 31, 29, 41, 49, 69, 55, 53, 29, 43, 59, 51, 41, 37, 35
Offset: 1

Views

Author

Wolfdieter Lang, Feb 19 2015

Keywords

Comments

For the corresponding term y2(n) see A255248(n).
For the positive fundamental proper (sometimes called primitive) solutions x1(n) and y1(n) of the first class of this (generalized) Pell equation see A255235(n) and A255246(n).
The present solutions of this second class are the next to smallest positive ones. Note that for prime 2 only the first class exists.
For the derivation based on the book of Nagell see the comments on A254934 and A254938 for the primes 1 (mod 8) and 7 (mod 8) separately, where also the Nagell reference is given.

Examples

			The first pairs [x1(n), y1(n)] of the fundamental positive solutions of this first class are (the prime A001132(n) is listed as first entry):
  [7, [5, 4]], [17, [9, 7]], [23, [7, 6]],
  [31, [13, 10]], [41, [11, 9]], [47, [9, 8]],
  [71, [21, 16]], [73, [13, 11]], [79, [11, 10]],
  [89, [19, 15]], [97, [25, 19]], [103, [17, 14]],
  [113, [15, 13]], [127, [29, 22]],
  [137, [21, 17]], [151, [19, 16]],
  [167, [15, 14]], [191, [31, 24]],
  [193, [23, 19]], [199, [37, 28]],
  [223, [17, 16]], [233, [35, 27]],
  [239, [27, 22]], [241, [41, 31]], ...
n = 1: 5^2 - 2*4^2 = 25 - 32 = -7 = -A001132(1).
a(3) = -(3*3 - 4*4) = 16 - 9 = 7.
		

Crossrefs

Formula

a(n)^2 - 2*A255248(n)^2 = -A001132(n), n >= 1, gives the second smallest positive (proper) solution of this (generalized) Pell equation.
a(n) = -(3*A255235(n+1) - 4*A255246(n+1)), n >= 1.

Extensions

More terms from Colin Barker, Feb 26 2015
Showing 1-5 of 5 results.