In how many ways can three different numbers be chosen from 1, 2, …, 20 so that their sum is divisible by 3?
Type in the answer (TITA): no options.
Show answer & solution
Correct answer: 384
Solution: By remainder on division by 3: six numbers leave 0 (3, …, 18), seven leave 1 (1, …, 19) and seven leave 2 (2, …, 20). The sum is a multiple of 3 when all three remainders are equal or all three differ: C(6,3) + C(7,3) + C(7,3) + 6 × 7 × 7 = 20 + 35 + 35 + 294 = 384.