OFFSET
1,1
COMMENTS
The sequence is finite. It appears to have exactly 485 terms, the largest being 887040.
The finiteness of the sequence was proved by Earnest and Estes.
I found the 485 terms with PARI and didn't find any other up to 50000000.
LINKS
David Brink, Table of n, a(n) for n = 1..485
David Brink, Five peculiar theorems on simultaneous representation of primes by quadratic forms (Video abstract)
David Brink, Five peculiar theorems on simultaneous representation of primes by quadratic forms, J. Number Theory 129 (2009), no. 2, 464-468.
A. G. Earnest and D. R. Estes, An algebraic approach to the growth of class numbers of binary quadratic lattices, Mathematika 28 (1981), no. 2, 160--168.
Journal of Number Theory, Video Abstracts
PROG
(PARI) a(n) = if(n%4==0 || n%4==3, my(v = quadclassunit(-n)[2]); (#v > 0) && (v[1] == 4), 0) \\ Jianing Song, Sep 24 2022
CROSSREFS
KEYWORD
nonn,fini
AUTHOR
David Brink, Dec 29 2007
STATUS
approved