OFFSET
1,6
COMMENTS
If n is even then a(n)=2*A010051(n/2-1).
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
The representations of 31 as 2*p+q with p and q prime are 2*7+17 and 2*13+5, so a(31) = 17 + 5 = 22.
MAPLE
f:= proc(n) local q, v, t;
t:= 0; q:= 1;
do
q:= nextprime(q);
if 2*q > n then return t fi;
v:= n - 2*q;
if isprime(v) then t:= t+v fi;
od;
end proc:
map(f, [$1..100]);
PROG
(PARI) a(n) = my(s=0); forprime(p=0, n\2, if (isprime(q=n-2*p), s+=q)); s; \\ Michel Marcus, Nov 08 2020
CROSSREFS
KEYWORD
nonn,look
AUTHOR
J. M. Bergot and Robert Israel, Nov 08 2020
STATUS
approved