login
A389639
Number of ways to write 2*n as the sum of four (not necessarily distinct) squares of primes.
3
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1
OFFSET
1,74
COMMENTS
Numbers k such that 2*k can be represented as the sum of four (not necessarily distinct) squares of primes are in A389638.
EXAMPLE
16 = 2^2 + 2^2 + 2^2 + 2^2.
148 = 3^2 + 3^2 + 3^2 + 11^2 = 5^2 + 5^2 + 7^2 + 7^2.
196 = 3^2 + 3^2 + 3^2 + 13^2 = 5^2 + 5^2 + 5^2 + 11^2 = 7^2 + 7^2 + 7^2 + 7^2.
MATHEMATICA
A389639list[pmax_] := With[{ps = Prime[Range[pmax + 1]]^2}, BinCounts[#, {1, Max[#], 1}] & [Select[Flatten[Table[ps[[i]] + ps[[j]] + ps[[k]] + ps[[l]], {i, pmax}, {j, i, pmax}, {k, j, pmax}, {l, k, pmax}]], IntegerQ[#/2] && # <= Last[ps] &]/2]];
A389639list[6] (* Paolo Xausa, Oct 25 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, Oct 09 2025
STATUS
approved