Number of permutations p of {1,...,n} such that at most one element of {p(1),...,p(i-1)} is between p(i) and p(i+1) for all i from 1 to n-1.

A216837

Number of permutations p of {1,...,n} such that at most one element of {p(1),...,p(i-1)} is between p(i) and p(i+1) for all i from 1 to n-1.

Terms

    a(0) =1a(1) =1a(2) =2a(3) =6a(4) =20a(5) =72a(6) =268a(7) =1020a(8) =3936a(9) =15332a(10) =60112a(11) =236780a(12) =935848a(13) =3708236a(14) =14721912a(15) =58533264a(16) =232991656a(17) =928261480a(18) =3700935760a(19) =14763921580a(20) =58924038816a(21) =235258847064a(22) =939576469152

External references