OFFSET
0,4
COMMENTS
As in A000161, the squares may be zero and do not need to be distinct.
LINKS
C. Hooley, On the representation of a number as the sum of two squares and a prime, Acta Mathem. 97 (1957) 189-210
FORMULA
a(n) = Sum_{primes p} A000161(n-p).
EXAMPLE
a(11) = 4 counts 11 = 11+0^2+0^2 = 7+0^2+2^2 = 2+0^2+3^2 = 3+2^2+2^2.
MAPLE
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. J. Mathar, Michel Marcus, Aug 04 2018
STATUS
approved