OFFSET
0,9
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = A266477(n,n).
p in primes => a(p) = 1.
EXAMPLE
a(8) = 2 because among the 22 (= A000041(8)) partitions of 8 only [1,1,1,1,1,1,1,1] and [1,1,1,1,2,2] have product of multiplicities of parts equal to 8.
MAPLE
b:= proc(n, i, p) option remember; `if`(p=1 and i*(i+1)/2<n, 0,
`if`(n=0, `if`(p=1, 1, 0), `if`(i<1, 0, b(n, i-1, p)+add(
`if`(irem(p, j)=0, b(n-i*j, i-1, p/j), 0), j=1..min(p, n/i)))))
end:
a:= n-> `if`(isprime(n), 1, b(n$3)):
seq(a(n), n=0..70);
MATHEMATICA
b[n_, i_, p_] := b[n, i, p] = If[p == 1 && i*(i + 1)/2 < n, 0, If[n == 0, If[p == 1, 1, 0], If[i < 1, 0, b[n, i - 1, p] + Sum[If[Mod[p, j] == 0, b[n - i*j, i - 1, p/j], 0], {j, 1, Min[p, n/i]}]]]]; a[n_] := If[PrimeQ[n], 1, b[n, n, n]]; Table[a[n], {n, 0, 70}] (* Jean-François Alcover, Dec 22 2016, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch and Alois P. Heinz, Dec 30 2015
STATUS
approved