login
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

%I #5 Jul 01 2018 16:37:14

%S 1,7,522,4260,163871,1572713,49601660,554432537,16431601190,

%T 211104220038,6214132488281,90601727479330,2718687446733807,

%U 44477388811619142,1378374571651666083,25055072909382001747,807272266530396465622,16165637154045080226474

%N 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.

%H Alois P. Heinz, <a href="/A316394/b316394.txt">Table of n, a(n) for n = 7..451</a>

%F a(n) = A262169(n) - A262168(n).

%p b:= proc(u, o, c, k) option remember;

%p `if`(c<0 or c>k, 0, `if`(u+o=0, 1,

%p add(b(u-j, o-1+j, c+1, k), j=1..u)+

%p add(b(u+j-1, o-j, c-1, k), j=1..o)))

%p end:

%p a:= n-> b(n, 0$2, 7)-b(n, 0$2, 6):

%p seq(a(n), n=7..24);

%Y Column k=7 of A258829.

%Y Cf. A262168, A262169.

%K nonn

%O 7,2

%A _Alois P. Heinz_, Jul 01 2018