|
|
A239162
|
|
Number of partitions of 3^n into parts that are at most n with at least one part of each size.
|
|
2
|
|
|
0, 1, 4, 48, 3042, 1067474, 2215932130, 29012104252380, 2526293243761311036, 1525710603023191548743988, 6600334932211428773703751221040, 209705652574790086852527310591449309624, 49907101066058865036206450041083799915221352487
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
a(n) = [x^(3^n-n*(n+1)/2)] Product_{j=1..n} 1/(1-x^j).
|
|
EXAMPLE
|
a(2) = 4: 22221, 222111, 2211111, 21111111.
|
|
MATHEMATICA
|
maxExponent = 30; a[0] = 0; a[1] = 1;
a[n_] := Module[{}, aparts = List @@ (Product[1/(1 - x^j), {j, 1, n}] // Apart); cc = aparts + O[x]^maxExponent // CoefficientList[#, x]&; f[k_] = Total[FindSequenceFunction[#, k]& /@ cc]; f[3^n - n(n+1)/2 + 1] // Round]; Table[an = a[n];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|