OFFSET
0,5
COMMENTS
Number of ways to write n as an ordered sum of 3 noncomposite numbers (1 together with the primes) (A008578).
a(2k+1) > 0 for all k > 0 (from the ternary Goldbach's conjecture, proved by H. A. Helfgott).
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
Ilya Gutkovskiy, Extended graphical example
FORMULA
G.f.: (x + Sum_{k>=1} x^prime(k))^3.
EXAMPLE
a(6) = 7 because we have [3, 2, 1], [3, 1, 2], [2, 3, 1], [2, 2, 2], [2, 1, 3], [1, 3, 2] and [1, 2, 3].
MATHEMATICA
nmax = 80; CoefficientList[Series[(x + Sum[x^Prime[k], {k, 1, nmax}])^3, {x, 0, nmax}], x]
PROG
(PARI) concat([0, 0, 0], Vec((x + sum(k=1, 80, x^prime(k)))^3 + O(x^81))) \\ Indranil Ghosh, Mar 16 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Mar 16 2017
STATUS
approved