Skip to main content
OlympiadHQ

Browse · MathNet

Print

Cono Sur Mathematical Olympiad

Argentina number theory

Problem

A sequence of integers is defined as follows: , , and for each , is equal to the greatest prime divisor of . Compute .
Solution
Let be the sequence of all prime numbers, and denote . Notice that , and consequently . Suppose that for some we have . Then, the greatest prime divisor of is , so and therefore . Once again, the greatest prime divisor of this number is , because and so it cannot be divisible by any larger prime. Thus . This pattern holds until reaching step where, for the first time, is divisible by some prime number that is larger than . Clearly this happens when . In that moment we have , and we are again in the same situation we were at the beginning. After this observation, since , we can deduce that after 3 steps we get to , after 4 more steps we get to , and continuing in this way we get

Hence , and finally .
Final answer
53

Techniques

Prime numbersRecurrence relations