Let and . Then the number of functions satisfyingis equal to ______
Solution
Core idea. A value fixed by a condition must still lie in the codomain, which restricts the other values.
Concept refresher. If one choice can be made in ways and an independent second choice in ways, both can be made together in
ways.
Picture the situation. The condition gives , and must be an element of , so . The values and do not appear in the condition and may be any elements of .
Approach. Count the allowed pairs for the first two values, then multiply by the free choices.
Step 1: The pairs
The ordered pairs of values from 1 to 6 with sum 2, 3, 4 or 5 number , and each fixes .
Step 2: The free inputs
Each of and has 6 choices, which is 36 ways, so the number of functions is .
Answer. 360
Sanity check. For example , forces , which is allowed, while , would force .
Common wrong answers
- 540: Allowing the sum 6 as well, which would need , gives .
- 10: Forgetting the two free inputs gives only 10.
Key takeaway
The trap. Inputs that do not appear in the condition multiply the count by their free choices.
How toppers think. They count pairs by their sum.
Remember.