Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

algebra intermediate

Problem

A sequence of integers is chosen so that for each What is the sum of the first terms of this sequence if the sum of the first terms is and the sum of the first terms is ?
Solution
Letting and we have Since and the sequence repeats with period ; that is, for all positive integers

Furthermore, the sum of any six consecutive terms in the sequence equals So, since is more than a multiple of six, the sum of the first terms is equal to the sum of the first four terms: Similarly, since is more than a multiple of six, we have Subtracting this second equation from the first equation, we get

Since is more than a multiple of six, we have (Note that solving for was not strictly necessary.)
Final answer
986