Let denote all the permutations of . For any \pi \in S_{7}f(\pi)i is a permutation of . Compute \sum_{\pi \in S_{7}} f(\pi)$.
Solution
Extend the definition of to apply for any permutation of , for any positive integer . For positive integer , let denote the number of permutations \pi1,2, \ldots, nf(\pi)=ng(1)=1n, kk \leq n of such that is !. This gives us the recursive formula !. Using this formula, we find that the first 7 values of are . Our sum is then equal to \sum_{k=1}^{7} k \cdot g(k)(7-k)g$, we get that the sum evaluates to 29093 .
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.