OFFSET
0,13
COMMENTS
As in A025441, the two squares must be distinct and positive.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..20000
FORMULA
a(n) = Sum_{primes p} A025441(n-p).
EXAMPLE
a(12)=2 counts 12 = 7 +1^2 +2^2 = 2 + 1^2 +3^2.
MAPLE
MATHEMATICA
p2sQ[n_]:=Length[Union[n]]==3&&Count[n, _?(IntegerQ[Sqrt[#]]&)]==2&&Count[ n, _?(PrimeQ[#]&)]==1; Table[Count[IntegerPartitions[n, {3}], _?p2sQ], {n, 0, 80}] (* Harvey P. Dale, Sep 21 2019 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. J. Mathar, Michel Marcus, Aug 04 2018
STATUS
approved