OFFSET
0,2
COMMENTS
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
FORMULA
EXAMPLE
The a(4)=11 partitions of 9 are:
(621), (6111),
(441), (4221), (42111), (411111),
(22221), (222111), (2211111), (21111111),
(111111111).
MAPLE
b:= proc(n, i) option remember; `if`(n=0 or i=2, 1,
b(n, prevprime(i))+`if`(i-1>n, 0, b(n-i+1, i)))
end:
a:= n-> b(2*n, nextprime(2*n)):
seq(a(n), n=0..60); # Alois P. Heinz, Jan 12 2017
MATHEMATICA
nn=60; invser=Product[1-x^(Prime[n]-1), {n, PrimePi[2nn-1]}];
Table[SeriesCoefficient[1/invser, {x, 0, n}], {n, 1, 2nn-1, 2}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jan 11 2017
STATUS
approved