|
|
A220874
|
|
Number of permutations of [n+1] avoiding 2413, 3142, 1324, 4231.
|
|
1
|
|
|
1, 2, 6, 20, 64, 194, 562, 1570, 4258, 11266, 29186, 74242, 185858, 458754, 1118210, 2695170, 6430722, 15204354, 35651586, 82968578, 191758338, 440401922, 1005584386, 2283798530, 5161091074, 11609833474, 26004684802, 58015612930, 128949682178
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
FORMULA
|
Andrei Asinowski and Toufik Mansour give a g.f.
G.f. -(-7*x+20*x^2-26*x^3+12*x^4+2*x^5+1)/((x-1)*(2*x-1)^4). - R. J. Mathar, Jan 04 2013
a(n) = 2+(n-1)*(n^2+n+42)*2^(n-4)/3 for n>0. - R. J. Mathar, Jan 30 2013 (see Maple section).
|
|
MAPLE
|
if n = 0 then
1;
else
2+(n-1)*(n^2+n+42)*2^(n-4)/3 ;
end if;
|
|
MATHEMATICA
|
a[0] = 1; a[n_] := 2 + (n - 1)*(n^2 + n + 42)*2^(n - 4)/3;
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|