OFFSET
1,3
COMMENTS
It follows that the total number of ideals of norm n is A035170(n).
REFERENCES
David A. Cox, Primes of the form x^2+ny^2, Wiley, 1989.
A. Frohlich and M. J. Taylor, Algebraic number theory, Cambridge university press, 1991.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
PROG
(PARI)
isA091727(n) = { my(ms = [1, 2, 3, 5, 7, 9], p, e=isprimepower(n, &p)); if(!e || e>2, 0, bitxor(e-1, !!vecsearch(ms, p%20))); };
A091728(n) = if(!isA091727(n), 0, (2-((2==n)||(5==n)||issquare(n)))); \\ Antti Karttunen, Feb 24 2020
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Boddington, Feb 02 2004
EXTENSIONS
Data section extended up to a(121) by Antti Karttunen, Feb 24 2020
STATUS
approved