Problem:
Let . Find the number of functions from to that satisfy for all in and attain exactly 2010 distinct values.
Harvard-MIT Mathematics Tournament
Solution
Solution:
Answer:
Let be the element of not in the range of . Let be the element of that is hit twice.
We now sum the total number of functions over . Clearly , and by induction, for , . Also unless , because can take no other number to . It follows from backwards induction that for , . Therefore , and there are only values of that are not fixed.
Now or . For , given the selection of , of the possible values of (, and counting twice) have been taken, so there are two distinct values that can take (one of them is , and the other is not, so they are distinct). For , when the other 2010 values of have been assigned, there is only one missing, so is determined.
For each integer in , there are two possible values of , so there are different functions for a given . So our answer is