Let . The number of one-one functions such that , and , is ______.
Solution
Core idea. Fix the most constrained images first, then count the free arrangements of the rest.
Concept refresher. A one-one function from a finite set onto itself sends different elements to different values. When some images are fixed step by step, the multiplication principle counts the choices: the remaining elements can be sent one-one onto the remaining values in
ways.
Approach. Fix the pair first, then , then arrange the images of , , .
Step 1: List the pairs for 2 and 3
The values and are different, add to , and , so can be with :
Step 2: Count the choices for f(1)
The image must be one of and differ from the two values already used. Each pair uses exactly one value from , so values remain for every pair:
Step 3: Arrange the remaining elements
The elements , , go one-one onto the three values not yet used, in ways, so
Answer. 72
Sanity check. For the pair the allowed are , and for they are : three each, as counted. Without any condition there would be one-one functions, and is one tenth of that, a reasonable share for three conditions.
Common wrong answers
- 12: The pairs times choices of give , but the elements , , still have to be sent one-one onto the three unused values, in ways.
- 96: Letting be any of the unused values gives ; the condition removes one of them for every pair.
- 24: Taking pairs times gives , which forgets to multiply by the choices for .
Key takeaway
The trap. Stopping at and forgetting the ways to place the remaining three elements.
How toppers think. They notice that every pair uses exactly one of the values and , so the count for is the same each time.
Remember. elements can be mapped one-one onto values in ways.