The total number of functions, such that , is equal to
- Option A: 60
- Option B: 90
- Option C: 108
- Option D: 126
Solution
Core idea. Ordered pairs of positive integers with a given sum number one less than the sum.
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 values and are at least 1, so their sum is at least 2, and must be an element of . So can be 2, 3, 4, 5 or 6. The value does not appear in the condition.
Approach. Count the ordered pairs by their sum, then multiply by the choices for the free input.
Step 1: The pairs
The ordered pairs with sum number , so the sums 2 to 6 give pairs, each fixing .
Step 2: The free input
The value can be any of the 6 elements, so the number of functions is .
Answer. (B) 90
Sanity check. For the sum 6 the pairs are , , , and , which is 5, as the rule says.
Why the other options are wrong
- (A) The value 60 comes from only 10 pairs, leaving out the 5 pairs with sum 6.
- (C) The value 108 would need 18 pairs; only 15 have a sum of at most 6.
- (D) The value 126 counts 21 pairs, including the 6 with sum 7, for which would be 7.
Key takeaway
The trap. A value fixed by a condition must still belong to the codomain.
How toppers think. They count pairs by their sum and add.
Remember.