A254938
Fundamental positive solution x = x1(n) of the first 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
1, 3, 1, 5, 1, 7, 5, 1, 7, 11, 3, 1, 13, 7, 5, 11, 9, 17, 5, 3, 9, 19, 7, 13, 5, 3, 7, 19, 13, 1, 9, 25, 15, 7, 23, 27, 17, 9, 21, 7, 1, 13, 19, 11, 23, 17, 31, 7, 1, 33, 11, 17, 7, 27, 5, 35, 13, 25, 19, 11, 29, 9, 17, 5, 3, 1, 27, 21, 35, 17, 23, 15, 37, 41, 21, 13, 19, 7, 3, 23, 15, 33, 13
Offset: 1
The first pairs [x1(n), y1(n)] of the fundamental positive solutions of this first class are (the prime A007522(n) is listed as first entry):
[7, [1, 2]], [23, [3, 4]], [31, [1, 4]],
[47, [5, 6]], [71, [1, 6]], [79, [7, 8]],
[103, [5, 8]], [127, [1, 8]], [151, [7, 10]],
[167, [11, 12]], [191, [3, 10]], [199, [1, 10]], [223, [13, 14]], [239, [7, 12]], [263, [5, 12]], [271, [11, 14]], [311, [9, 14]], [359, [17, 18]], [367, [5, 14]], [383, [3, 14]], [431, [9, 16]], [439, [19, 20]], [463, [7, 16]], [479, [13, 18]], [487, [5, 16]], [503, [3, 16]], ...
n=1: 1^2 - 2*(2*1)^2 = 1 - 8 = -7 = -A007522(1), ...
- T. Nagell, Introduction to Number Theory, Chelsea Publishing Company, New York, 1964.
-
apply( {A254938(n, p=A007522(n))=Set(abs(qfbsolve(Qfb(-1, 0, 2), p, 1)))[1][1]}, [1..88]) \\ The 2nd optional arg allows to directly specify the prime. - M. F. Hasler, May 22 2025
A255232
One half of the fundamental positive solution y = y1(n) of the first 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
1, 2, 2, 3, 3, 4, 4, 4, 5, 6, 5, 5, 7, 6, 6, 7, 7, 9, 7, 7, 8, 10, 8, 9, 8, 8, 9, 11, 10, 9, 10, 13, 11, 10, 13, 14, 12, 11, 13, 11, 11, 12, 13, 12, 14, 13, 16, 12, 12, 17, 13, 14, 13, 16, 13, 18, 14, 16, 15, 14, 17, 14, 15, 14, 14, 14, 17, 16, 19, 16, 17, 16, 20, 21, 17, 16, 17, 16, 16
Offset: 1
See A254938.
n = 3: 1^2 - 2*(2*2)^2 = 1 - 32 = -31 = -A007522(3).
-
apply( {A255232(n, p=A007522(n))=Set(abs(qfbsolve(Qfb(-1, 0, 2), p, 1)))[1][2]\2}, [1..88]) \\ The 2nd optional arg allows to directly specify the prime. - 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
n = 2: 11^2 - 2*9^2 = 121 - 162 = -41.
a(2) = -(2*3 - 3*5) = 9.
See also A254936.
-
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
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
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.
-
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
A255248
Fundamental positive solution y = y2(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
4, 7, 6, 10, 9, 8, 16, 11, 10, 15, 19, 14, 13, 22, 17, 16, 14, 24, 19, 28, 16, 27, 22, 31, 21, 26, 20, 19, 24, 29, 37, 21, 20, 32, 36, 31, 25, 30, 23, 22, 43, 29, 34, 28, 38, 42, 25, 45, 49, 29, 40, 35, 28, 27, 34, 39, 52, 43, 42, 28, 36, 46, 41, 35, 33, 32
Offset: 1
See A255247.
a(4) = -(2*1 - 3*4) = 12 - 2 = 10.
n=4: 13^2 - 2*10^2 = 169 - 200 = -31 = -A001132(4).
Showing 1-5 of 5 results.
Comments