Let . Then the number of elements in the set is onto andis
Solution
Core idea. A symmetric function of two entries is a function of unordered pairs, which are counted by their larger entry.
Concept refresher. For a symmetric function, , the condition for all pairs gives
so each value is at least the larger entry.
Picture the situation. Because and also , each value is at least the larger entry. The 10 unordered pairs split by larger entry: ; then , ; then , , ; then the 4 pairs containing 4, which must all take the value 4.
Approach. Fix the forced values, count the ways with the value 2 present, then remove those without the value 3.
Step 1: The values 1 and 2
Only may take the value 1, so . The value 2 can come only from and , each allowed 2, 3 or 4; at least one of them is 2 in ways.
Step 2: The value 3
The three pairs with larger entry 3 take 3 or 4 in ways, giving . The value 3 is missing when those three pairs are all 4 and the two earlier pairs use only 2 and 4, which happens in ways. So the count is .
Answer. 37
Sanity check. The value 4 is always taken, by the pairs containing 4, so no further condition arises.
Common wrong answers
- 40: Forgetting that the value 3 must appear gives 40.
Key takeaway
The trap. Onto must be checked for every value, including the middle ones.
How toppers think. They impose the onto condition from the smallest value upward.
Remember.