Let denote all the permutations of . For any be the smallest positive integer i is a permutation of . Compute
Solution
Extend the definition of to apply for any permutation of , for any positive integer . For positive integer , let denote the number of permutations 1,2, ng(1)=1n, kk 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 g(k)(7-k) !. Using our computed values of 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.