Skip to main content
OlympiadHQ

Browse · MathNet

Print

Mongolian Mathematical Olympiad

Mongolia number theory

Problem

Let be a positive integer and be a prime number. Consider the sequence defined by for , and let be the smallest prime that divides a member of the sequence. Determine all pairs such that . (Bayarmagnai Gombodorj)
Solution
Answer: prime, . Let be a prime number.

First, consider the case where is even. If is even, consider . Since is even, we have . Therefore, is satisfied only for . For , the condition is not satisfied because .

Next, consider the case where . For , all terms are odd. Hence, . Therefore, the condition is satisfied for .

Consider the case where is odd. We need to show that for odd .

First, let with . If and , then . Since , we have .

For general , since , it follows that .

Next, consider other prime divisors dividing . If , then . If , by Fermat's Little Theorem, . Hence, .

Therefore, for , the condition is not satisfied if is an odd number.
Final answer
(m, p) = (2, p) or (3, p) for any prime p at least five

Techniques

Fermat / Euler / Wilson theoremsPrime numbers