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).
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
Keywords
Examples
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), ...
References
- T. Nagell, Introduction to Number Theory, Chelsea Publishing Company, New York, 1964.
Links
- M. F. Hasler, Table of n, a(n) for n = 1..1000, May 22 2025
Crossrefs
Programs
-
PARI
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
Formula
Extensions
More terms from Colin Barker, Feb 23 2015
Comments