OFFSET
1,1
COMMENTS
The corresponding terms x = x2(n) are given in A254930(n).
The y2-sequence for the second class for the primes congruent to 1 (mod 8), which are given in A007519, is 2*A254763. For the primes congruent to 7 (mod 8), given in A007522, the y2-sequence is A254929.
For comments and the Nagell reference see A254760.
FORMULA
EXAMPLE
MATHEMATICA
Reap[For[p = 2, p < 1000, p = NextPrime[p], If[MatchQ[Mod[p, 8], 1|7], rp = Reduce[x > 0 && y > 0 && x^2 - 2 y^2 == p, {x, y}, Integers]; If[rp =!= False, xy = {x, y} /. {ToRules[rp /. C[1] -> 1]}; y2 = xy[[-1, 2]] // Simplify; Print[y2]; Sow[y2]]]]][[2, 1]] (* Jean-François Alcover, Oct 28 2019 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wolfdieter Lang, Feb 12 2015
STATUS
approved