Let is a 3-digit number,andfor some . If the sum of all the elements of the set is , then is equal to
Solution
Core idea. The members of a residue class in a range form an arithmetic progression whose sum shifts with the residue.
Concept refresher. An arithmetic progression of terms with first term and last term has the sum
Picture the situation. The three-digit numbers of are 101, 110, ..., 992, and those of are , , ..., . Each list has 100 terms. If were 2 the lists would coincide; the given total is about twice the sum of one list, so the lists are different and have no common member.
Approach. Sum the first list, subtract from the total, and match the remainder with the sum of the second list.
Step 1: The first class
The numbers from 101 to 992 with common difference 9 are 100 terms, and their sum is .
Step 2: The second class
The total is , so the second class adds up to .
Step 3: The value of l
The second class has 100 terms from to , with sum . Setting this equal to 54950 gives .
Answer. 5
Sanity check. For the class runs from 104 to 995, and .
Common wrong answers
- 2: Taking makes the same as , and the sum is then only 54650.
Key takeaway
The trap. Two equal classes contribute once to a union, not twice.
How toppers think. They write the sum of a class as a base sum plus one hundred times the residue.
Remember.
More on Set Operations & Venn Diagrams
- Let A = {x: |x² - 10| ≤ 6} and B = {x: |x - 2| > 1}. Then
- Let S = {p₁, p₂, …, p₁₀} be the set of first ten prime numbers. Let A = S ∪ P, where P is the set of all…
- Let A = {x ∈ (0, π) - {π/2}: log(2/π)|sin x| + log(2/π)|cos x| = 2} and B = {x ≥ 0: √(x)(√(x) - 4) - 3|√(x)…
- All 31 on Set Operations & Venn Diagrams ›