Skip to main content
OlympiadHQ

Browse · MathNet

Print

45th Mongolian Mathematical Olympiad

Mongolia number theory

Problem

Given . How many positive integer solutions following equation ?
Solution
Lemma: Let be a prime number and . (i) , (ii) If then there exist prime number such that , . Proof: See 11.6.

If then above equation has only one solution. If then and , here is the smallest prime divisor of , . Using the lemma, we get . By Euler's theorem

By the Fermat's theorem But this is contradiction.

The above cases, we get 2 solutions. Let and , is the smallest prime divisor of . If then . This leads to contradiction.

Hence, we know that and is an odd prime number.



If there exist then by Lemma there exist such that , , . Using Lemma, we have and from here so on ... , . By the Lemma there exist prime number such that Also, and if . Therefore, , thus for if we put there then . This leads to contradiction. Thus we can construct infinitely many solutions of mentioned equation.
Final answer
For every a, n = 1 is a solution. If a = 1, a = 2, or a + 1 is a power of two greater than two, there are no solutions with n > 1; thus exactly one solution. In all other cases (i.e., a > 2 and a + 1 not a power of two), there are infinitely many n satisfying a^n ≡ −1 mod n^2.

Techniques

Fermat / Euler / Wilson theoremsMultiplicative orderFactorization techniques