OFFSET
1,2
COMMENTS
A length n decorated permutation is a word w = w_1....w_n on the letters {0,...,n} such that the restriction of w to its nonzero entries is an ordinary permutation in one-line notation. Then w avoids 0^m if w contains at most m-1 0's as letters, and w contains 0^m if w contains m 0's among its letters (not necessarily consecutive).
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..1275 (rows 1..50)
S. Corteel, Crossings and alignments of permutations, Adv. Appl. Math 38 (2007) 149-163.
A. Postnikov, Total positivity, Grassmannians, and networks, arXiv:math/0609764 [math.CO], 2006.
FORMULA
T(n,m) = Sum_{j=0..m-1} n!/j!.
EXAMPLE
For (n,m) = (3,2), the T(3,2) = 12 length 3 decorated permutations avoiding 0^2 = 00 are 012, 102, 120, 021, 201, 210, 123, 132, 213, 231, 312, and 321.
Triangle begins:
1
2, 4
6, 12, 15
24, 48, 60, 64
120, 240, 300, 320, 325
MATHEMATICA
Array[Accumulate[#!/Range[0, #-1]!]&, 10] (* Paolo Xausa, Jan 08 2024 *)
PROG
(PARI) T(n, m)={sum(j=0, m-1, n!/j!)} \\ Andrew Howroyd, May 11 2020
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Jordan Weaver, Apr 16 2020
EXTENSIONS
Terms a(37) and beyond from Andrew Howroyd, Jan 07 2024
STATUS
approved