OFFSET
0,6
LINKS
EXAMPLE
a(9) = 5 because we have [7, 2], [5, 2, 2], [2, 7], [2, 5, 2] and [2, 2, 5].
MAPLE
a:= proc(m) option remember; local b; b:= proc(n) option
remember; `if`(n=0, 1, add(`if`(not isprime(j) or
irem(m, j)=0, 0, b(n-j)), j=2..n)) end; b(m)
end:
seq(a(n), n=0..80); # Alois P. Heinz, Mar 11 2018
MATHEMATICA
Table[SeriesCoefficient[1/(1 - Sum[Boole[Mod[n, k] != 0 && PrimeQ[k]] x^k, {k, 1, n}]), {x, 0, n}], {n, 0, 53}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Mar 11 2018
STATUS
approved