How many $n$-permutations have no substrings of the type $(j,j+1)$? $$1\leq j\leq n-1 \text{ and } n\geq 2$$
For example, let $n$ be 5:
[3 2 1 5 4] is one of the permutations we have to count.
[4 5 3 1 2] or [1 2 3 5 4] are permutations that we don't have to count.
I reckon this could be a PIE-solvable problem but I really can't figure how to work it out...
If we let $A_j$ be the set of n-permutations which do have the substring $(j,j+1)$ for $1\le j\le n-1$ and let $S$ be the set of all n-permutations,
$\displaystyle\lvert \overline{A}_1\cap\cdots\cap\overline{A}_{n-1}\rvert=\lvert S\rvert-\sum_{i}\lvert A_i\rvert+\sum_{i<j}\lvert A_i\cap A_j\rvert-\sum_{i<j<k}\lvert A_i\cap A_j\cap A_k\rvert+\cdots$
$\hspace{.3 in }\displaystyle=n!-\binom{n-1}{1}(n-1)!+\binom{n-1}{2}(n-2)!-\binom{n-1}{3}(n-3)!+\cdots+(-1)^{n-1}\binom{n-1}{n-1}1!$
$\hspace{.3 in }\displaystyle=(n-1)!\left[n-\frac{n-1}{1!}+\frac{n-2}{2!}-\frac{n-3}{3!}+\cdots+(-1)^{n-1}\frac{1}{(n-1)!}\right]=D_n+D_{n-1}$