OFFSET
1,1
COMMENTS
The sequence contains no primes congruent to 3 modulo 4 and all primes congruent to 5 modulo 8.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
H. von Lienen, The quadratic form x^2-2py^2, J. Number Theory 10 (1978), 10-15.
MATHEMATICA
fQ[n_] := Solve[x^2 + 1 == 2 n*y^2, {x, y}, Integers] != {}; Select[ Prime@ Range@ 160, fQ] (* Robert G. Wilson v, Dec 19 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
David Brink, Dec 29 2007
STATUS
approved