OFFSET
1,3
COMMENTS
Conjecture: For all n, a(n) > 0; a(n) > A002375(n).
LINKS
Eric Weisstein's World of Mathematics, Goldbach Conjecture
Wikipedia, Goldbach's conjecture
Wikipedia, Waring-Goldbach problem
EXAMPLE
a(1) = #{1+1} = 1; a(2) = #{1+3} = 1; a(3) = #{1+5, 3+3} = 2;
a(20) = #{3+37, 3^2+31, 11+29, 13+3^3, 17+23} = 5;
a(21) = #{1+41, 5+37, 11+31, 13+29, 17+5^2, 19+23} = 6.
MAPLE
isA061345 := proc(n)
if n = 1 then
true;
elif type(n, 'even') then
false;
elif nops(numtheory[factorset](n)) = 1 then
true;
else
false;
end if;
end proc:
A117119 := proc(n)
local a, j, i;
a := 0 ;
for i from 1 do
j := 2*n-i ;
if j < i then
break;
end if;
if isA061345(i) and isA061345(j) then
a := a+1 ;
end if;
end do:
a ;
end proc:
seq(A117119(n), n=1..60) ; # R. J. Mathar, Jul 09 2016
MATHEMATICA
oppQ[n_] := n == 1 || OddQ[n] && PrimeNu[n] == 1; a[n_] := (k = 0; For[i = 1, True, i++, j = 2n - i; If[j < i, Break[]]; If[oppQ[i] && oppQ[j], k++] ]; k); Array[a, 100] (* Jean-François Alcover, Feb 13 2018 *)
CROSSREFS
KEYWORD
nonn,changed
AUTHOR
Reinhard Zumkeller, Apr 15 2006
STATUS
approved