2018 AIME II Problem 15
Problem 15 of 15HarderCombinatoricsProblem-Solving Techniques
Find the number of functions from to the integers such that and for all and in
Your answer
Integer from 0 to 999
Show solution
Solution
Let so each and If of the differences were negative, the sum would be at most so If no difference is negative, the solutions of (with counting s, s, s) are and all such orderings satisfy every pair condition, giving
If then with forces and the remaining four differences are positive and sum to giving functions, and the case is symmetric: in all. Finally, if for some the pair conditions and force and The other three differences are positive and sum to achievable as two s and a or a and two s, each in orders: ways for each of the positions, or functions.
The total is
Tagged: partitions and compositions · multiset permutations · casework · bounding to limit cases