OFFSET
0,7
COMMENTS
For a(n) = 0 the resulting primes p >= 5 see in A002496.
LINKS
Stoyan I. Dimitrov, A ternary diophantine inequality by primes with one of the form p = x^2 + y^2 + 1, arXiv:2011.03967 [math.NT], 2020.
FORMULA
a(n) = 0 for n from A001912.
EXAMPLE
n = 0: x^2 + x^2 + 1 = p is valid for the least x = 1, p = 3, thus a(0) = 1.
n = 6: x^2 + (x + 12)^2 + 1 = p is valid for the least x = 9, p = 523, thus a(6) = 9.
PROG
(PARI) a(n) = my(x=0); while (!isprime(x^2 + (x + 2*n)^2 + 1), x++); x; \\ Michel Marcus, Oct 03 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Oct 03 2023
EXTENSIONS
More terms from Michel Marcus, Oct 03 2023
STATUS
approved