The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A316392 Number of permutations p of [n] such that the up-down signature of 0,p has nonnegative partial sums with a maximal value of five. 2

%I #5 Jul 01 2018 14:04:35

%S 1,5,129,819,16066,127538,2423226,23367449,459383574,5246611332,

%T 109138956326,1446115120862,32069014233249,484780196858918,

%U 11478459399841878,195255855453716821,4931560739013573590,93326559046408832001,2509294817575539112099

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

%H Alois P. Heinz, <a href="/A316392/b316392.txt">Table of n, a(n) for n = 5..453</a>

%F a(n) = A262167(n) - A262166(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, 5)-b(n, 0$2, 4):

%p seq(a(n), n=5..23);

%Y Column k=5 of A258829.

%Y Cf. A262166, A262167.

%K nonn

%O 5,2

%A _Alois P. Heinz_, Jul 01 2018

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 3 09:44 EDT 2024. Contains 373057 sequences. (Running on oeis4.)