2018 AIME II Problem 11
Problem 11 of 15HarderCombinatorics
Find the number of permutations of such that for each with at least one of the first terms of the permutation is greater than
Your answer
Integer from 0 to 999
Show solution
Solution
The condition fails exactly when the first terms are a permutation of for some For a permutation of let be the smallest length for which the prefix is (the full length always works), and let be the number of permutations whose smallest such is We want
Every permutation of decomposes uniquely as a minimal prefix of length ( choices) followed by any arrangement of the remaining values, so Starting from this gives and
Tagged: permutations · complementary counting · recursive counting