Let and be distinct integers where and . Then, the number of ways of choosing and , such that is divisible by 5 , is _____ .
Solution
Core idea. Divisibility of a sum depends only on the remainders of its terms.
Concept refresher. If and leave remainders and on division by 5, then is divisible by 5 exactly when
Picture the situation. Among the numbers from 1 to 25 each remainder on division by 5 occurs exactly five times. The question names and separately, so the choice , is different from , . The count is therefore of ordered pairs with and different.
Approach. Count the ordered pairs for each pairing of remainders and add.
Step 1: Remainders
The sum is divisible by 5 when the remainders of and are 0 and 0, 1 and 4, 4 and 1, 2 and 3, or 3 and 2. Each remainder class has 5 numbers.
Step 2: Count
For remainders 0 and 0, and are different multiples of 5, giving choices. Each of the other four pairings gives choices. The total is .
Answer. 120
Sanity check. For each exactly 5 values of make the sum divisible by 5, giving 125 pairs; the 5 pairs with , both multiples of 5, are removed, leaving 120.
Common wrong answers
- 60: Counting unordered pairs gives 60; and are named separately, so their order matters.
- 125: Allowing when both are multiples of 5 gives 125.
Key takeaway
The trap. When both numbers come from the same class they must still be different.
How toppers think. They check by fixing the first number and counting the partners it allows.
Remember. Remainders add to 0 or 5.
More on Combinations
- A box contains 5 blue, 6 yellow and 4 red balls. The number of ways, of drawing 8 balls containing at least…
- Two players A and B play a series of games of badminton. The player, who wins 5 games first, wins the…
- Let pn denote the total number of triangles formed by joining the vertices of an n -side regular polygon. If…
- All 59 on Combinations ›