|
|
A246936
|
|
Number of partitions of n into 4 sorts of parts.
|
|
6
|
|
|
1, 4, 20, 84, 356, 1444, 5876, 23604, 94852, 379908, 1521492, 6088148, 24360548, 97451492, 389838708, 1559394356, 6237711300, 24951007620, 99804576340, 399218968084, 1596878076132, 6387515000292, 25550068873908, 102200286367156, 408801181153476
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: Product_{i>=1} 1/(1-4*x^i).
G.f.: Sum_{i>=0} 4^i*x^i/Product_{j=1..i} (1 - x^j). - Ilya Gutkovskiy, Apr 12 2018
|
|
MAPLE
|
b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i<1, 0,
b(n, i-1) +`if`(i>n, 0, 4*b(n-i, i))))
end:
a:= n-> b(n$2):
seq(a(n), n=0..25);
|
|
MATHEMATICA
|
b[n_, i_] := b[n, i] = If[n==0, 1, If[i<1, 0, b[n, i-1]+If[i>n, 0, 4 b[n-i, i]]]];
a[n_] := b[n, n];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|