OFFSET
0,7
LINKS
Vaclav Kotesovec, Table of n, a(n) for n = 0..18694 (terms 0..10000 from Alois P. Heinz)
FORMULA
a(n) ~ c * exp(Pi*sqrt(n/3)) * n^(1/4), where c = 0.0108735520090052... - Vaclav Kotesovec, May 24 2018
EXAMPLE
a(6) = 2: [1,1,1,1,2], [1,1,2,2].
a(7) = 1: [1,1,1,1,3].
a(8) = 3: [2,2,2,2], [1,1,3,3], [1,1,1,1,4].
a(9) = 4: [1,2,2,2,2], [1,1,1,1,2,3], [1,1,2,2,3], [1,1,1,1,5].
a(10) = 6: [1,1,2,3,3], [2,2,3,3], [1,1,1,1,2,4], [1,1,2,2,4], [1,1,4,4], [1,1,1,1,6].
MAPLE
b:= proc(n, i, p) option remember; `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..n/i)))
end:
a:= n-> b(n$2, 4):
seq(a(n), n=0..70);
MATHEMATICA
b[n_, i_, p_] := b[n, i, p] = 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, n/i}]]]; a[n_] := b[n, n, 4]; 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, Jan 02 2016
STATUS
approved