Let and. If and then is equal to
Solution
Core idea. A recurrence that adds a known sequence is solved by a running sum.
Concept refresher. If , then , and
Picture the situation. The first sequence grows by 1, 2, 3 and so on, so it is 1 plus a triangular number. The second sequence adds up the first. Doubling S lines its powers of 2 up with those of T, so the two sums can be subtracted term by term for the first eight terms, leaving two extra terms from S.
Approach. List both sequences, subtract the sums term by term, add the two leftover terms, and scale.
Step 1: The sequences
Adding the steps, : 1, 2, 4, 7, 11, 16, 22, 29, 37. Then gives 1, 2, 4, 8, 15, 26, 42, 64, 93, 130.
Step 2: Subtract term by term
Since , the first eight terms of have numerators : 0, 0, 1, 4, 10, 20, 35, 56. These add to .
Step 3: The leftover terms
The last two terms of are . So , and .
Answer. 461
Sanity check. The numerators 1, 4, 10, 20, 35, 56 are the numbers of ways of choosing 3 objects from 3, 4, 5, 6, 7, 8, which confirms the pattern .
Common wrong answers
- 382: Leaving out the ninth and tenth terms of gives .
Key takeaway
The trap. The two sums have different numbers of terms, so two terms of the longer one are left over.
How toppers think. They double the first sum so that its powers of two match the second.
Remember. Here