{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
Find the number of permutations of $1, 2, 3, 4, 5$ such that for each $k$ with $1$ $\leq$ $k$ $\leq$ $4$, at least one of the first $k$ terms of the permutation is greater than $k$.
Count the complement by the first $k$ at which the first $k$ terms are exactly $\{1,\dots,k\}$: if $g(n)$ counts good permutations of $n$, then $n!=\sum_{k=1}^{n}g(k)(n-k)!$ with $g(1)=1$.
This gives $g(2)=1$, $g(3)=3$, $g(4)=13$, $g(5)=71$.