OFFSET
0,10
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
EXAMPLE
a(14) = #{2+2*2*3, (2+2)+(2*3+2*2), 5+3*3, (3+3)+(2*2+2*2)} =
4;
a(15) = #{3+2*2*3, 5+2*5, (2+3)+(2*2+2*3), 7+2*2*2,
(2+5)+(2*2+2*2), 11+2*2} = 6.
MATHEMATICA
terms = 61;
pp = 1/(Product[1 - If[PrimeQ[k], y, 1/y]*x^k, {k, 2, terms-3}] + O[x]^terms) // Normal;
Take[Expand[pp ], terms-5] // CoefficientList[#, x]& (* Jean-François Alcover, Dec 30 2017, after Andrew Howroyd *)
PROG
(PARI)
parts(n)={1/(prod(k=2, n, 1 - if(isprime(k), y, 1/y)*x^k + O(x*x^n)))}
{my(n=60); apply(p->polcoeff(p, 0), Vec(parts(n)))} \\ Andrew Howroyd, Dec 29 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Feb 16 2006
EXTENSIONS
a(0)=1 from Andrew Howroyd, Dec 29 2017
STATUS
approved