OFFSET
1,8
COMMENTS
For n >= 9, this is the number of permutations of [n] that avoid substrings j(j+8), 1 <= j <= n-8.
LINKS
Enrique Navarrete, Generalized K-Shift Forbidden Substrings in Permutations, arXiv:1610.06217 [math.CO], 2016.
FORMULA
For n>=9: a(n) = Sum_{j=0..n-8} (-1)^j*binomial(n-8,j)*(n-j)!.
Note a(n)/n! ~ 1/e.
EXAMPLE
a(12)=339696000 since this is the number of permutations in S12 that avoid substrings {19,2(10),3(11),4(12)}.
MATHEMATICA
With[{k = 9}, ConstantArray[0, k - 2]~Join~Table[Sum[(-1)^j*Binomial[n - (k - 1), j] (n - j)!, {j, 0, n - (k - 1)}], {n, k - 1, k + 12}]] (* Michael De Vlieger, Mar 26 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Enrique Navarrete, Mar 22 2017
STATUS
approved