OFFSET
0,9
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
FORMULA
a(n) ~ c * exp(Pi*sqrt(n/3)) * n^(3/4), where c = 0.0012263686774... - Vaclav Kotesovec, May 24 2018
EXAMPLE
a(8) = 2: [1,1,1,1,1,1,1,1], [1,1,1,1,2,2].
a(10) = 3: [1,1,1,1,1,1,1,1,2], [1,1,2,2,2,2], [1,1,1,1,3,3].
a(12) = 5: [1,1,1,1,2,3,3], [1,1,2,2,3,3], [1,1,1,1,1,1,1,1,4], [1,1,1,1,2,2,4], [1,1,1,1,4,4].
MAPLE
b:= proc(n, i, p) option remember; `if`(i*(p+(i-1)/2)<n, 0, `if`(n=0,
`if`(p=1, 1, 0), b(n, i-1, p) +add(`if`(irem(p, j)>0, 0, (h->
b(h, min(h, i-1), p/j))(n-i*j)), j=1..min(p, n/i))))
end:
a:= b(n$2, 8):
seq(a(n), n=0..65);
MATHEMATICA
b[n_, i_, p_] := b[n, i, p] = If[i*(p + (i - 1)/2) < n, 0, If[n == 0, If[p == 1, 1, 0], b[n, i - 1, p] + Sum[If[Mod[p, j] > 0, 0, Function[h, b[h, Min[h, i - 1], p/j]][n - i*j]], {j, 1, Min[p, n/i]}]]];
a[n_] := b[n, n, 8];
Table[a[n], {n, 0, 65}] (* Jean-François Alcover, May 01 2018, translated from Maple *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch and Alois P. Heinz, Jan 02 2016
STATUS
approved