login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A316394
Number of permutations p of [n] such that the up-down signature of 0,p has nonnegative partial sums with a maximal value of seven.
2
1, 7, 522, 4260, 163871, 1572713, 49601660, 554432537, 16431601190, 211104220038, 6214132488281, 90601727479330, 2718687446733807, 44477388811619142, 1378374571651666083, 25055072909382001747, 807272266530396465622, 16165637154045080226474
OFFSET
7,2
LINKS
FORMULA
a(n) = A262169(n) - A262168(n).
MAPLE
b:= proc(u, o, c, k) option remember;
`if`(c<0 or c>k, 0, `if`(u+o=0, 1,
add(b(u-j, o-1+j, c+1, k), j=1..u)+
add(b(u+j-1, o-j, c-1, k), j=1..o)))
end:
a:= n-> b(n, 0$2, 7)-b(n, 0$2, 6):
seq(a(n), n=7..24);
CROSSREFS
Column k=7 of A258829.
Sequence in context: A003396 A124899 A056852 * A300391 A126196 A182433
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Jul 01 2018
STATUS
approved