login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A306529 x-value of the smallest solution to x^2 - p*y^2 = 2*(-1)^((p+1)/4), p = A002145(n). 3
1, 3, 3, 13, 5, 39, 59, 7, 23, 221, 59, 9, 9, 477, 31, 2175, 103, 8807, 41571, 8005, 13, 2047, 2999, 127539, 527593, 15, 15, 2489, 1917, 373, 340551, 11759, 9409, 4109, 52778687, 801, 19, 137913, 113759383, 137, 16437, 12311, 21, 21, 15732537, 1275, 1729, 7204587, 305987, 67 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) exists for all n.
X = a(n)^2 - (-1)^((p+1)/4), Y = a(n)*A306566(n) gives the smallest solution to x^2 - p*y^2 = 1, p = A002145(n). As a result, all the positive solutions to x^2 - p*y^2 = 2*(-1)^((p+1)/4) are given by (x_n, y_n) where x_n + (y_n)*sqrt(p) = (a(n) + A306566(n)*sqrt(p))*(X + Y*sqrt(p))^n.
LINKS
FORMULA
If the continued fraction of sqrt(A002145(n)) is [a_0; {a_1, a_2, ..., a_(k-1), a_k, a_(k-1), ..., a_1, 2*a_0}], where {} is the periodic part, let x/y = [a_0; a_1, a_2, ..., a_(k-1)], gcd(x, y) = 1, then a(n) = x and A306566(n) = y.
EXAMPLE
The smallest solution to x^2 - p*y^2 = 2*(-1)^((p+1)/4) for the first primes congruent to 3 modulo 4:
n | Equation | x_min | y_min
1 | x^2 - 3*y^2 = -2 | 1 | 1
2 | x^2 - 7*y^2 = +2 | 3 | 1
3 | x^2 - 11*y^2 = -2 | 3 | 1
4 | x^2 - 19*y^2 = -2 | 13 | 3
5 | x^2 - 23*y^2 = +2 | 5 | 1
6 | x^2 - 31*y^2 = +2 | 39 | 7
7 | x^2 - 43*y^2 = -2 | 59 | 9
8 | x^2 - 47*y^2 = +2 | 7 | 1
9 | x^2 - 59*y^2 = -2 | 23 | 3
PROG
(PARI) b(p) = if(isprime(p)&&p%4==3, x=1; while(!issquare((x^2 - 2*(-1)^((p+1)/4))/p), x++); x)
forprime(p=3, 500, if(p%4==3, print1(b(p), ", ")))
CROSSREFS
Cf. A002145, A306566 (y-values).
Similar sequences: A094048, A094049 (x^2 - A002144(n)*y^2 = -1); A306618, A306619 (2*x^2 - A002145(n)*y^2 = (-1)^((p+1)/4))).
Sequence in context: A206704 A020550 A368960 * A200921 A135949 A168234
KEYWORD
nonn
AUTHOR
Jianing Song, Mar 25 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 9 13:34 EDT 2024. Contains 372351 sequences. (Running on oeis4.)