CombinatoricsDifficulty 5.0AIME, harderProve itUnited States
Problem: Let N be the number of functions f from {1,2,…,101}→{1,2,…,101} such that f101(1)=2. Find the remainder when N is divided by 103.
Solution
Solution: For convenience, let n=101. Compute the number of functions such that fn(1)=1. Since n is a prime, there are 2 cases: the order of 1 is either 1 or n. The first case gives nn−1 functions, and the second case gives (n−1)! functions. By symmetry, the number of ways for fn(1)=2 is n−11⋅(nn−nn−1−(n−1)!)=nn−1−(n−2)! Plugging in n=101, we need to find 101100−99!≡(−2)−2−6101!=1/4−1/6=1/12=43(mod103).
Want a route through all this instead of an archive? The track
puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.
Source: MathNet,
licensed CC-BY-4.0.
Statement reproduced verbatim; metadata (topic, difficulty) added by this project.