Skip to main content
OlympiadHQ

Browse · MathNet

Print

Irska

Ireland number theory

Problem

a) For each integer not divisible by , let denote the least among all positive integers such that divides . For each positive integer , let . Show that and for all other values of .

b) Find the least positive integer such that divides for all integers relatively prime to .
Solution
a) Unless otherwise specified, everywhere in part a), will denote congruence modulo . Consider the six cases , and .

1. If , with , then , so or is a multiple of . Thus and for .

2. If , with , then . If is odd, then which cannot hold as . If is even, then which holds when or is a multiple of . Thus and for .

3. If , with , then , so This implies in a first instance that , i.e. for some integer . Then Therefore, if and , there exists an integer such that This implies . Moreover, when , then any two solutions and of the equation above differ by a multiple of . On the other hand, if , any value of is a solution, so for .

4. If , with , then . If is odd, then which implies that . A short check of the possible values of modulo shows that this is not possible. If is even, then for some integer . Similarly to the previous case, this implies and for .

5. If , with , then , so for some integer . This implies that , i.e. for some integer . Then Therefore, if and , there exists an integer such that the equation holds, so . As in the previous cases, for .

6. If , with , then . If is odd, then which implies that . A short check of the possible values of modulo shows that this is equivalent to and then , where the right hand side becomes becomes , equivalently , which holds for all when , and for all when . Thus while for . If is even, then for some integer . Similarly to the previous case, this implies for and for and , which was already known from the case of odd.

b) . From a) it follows that divides for all integers relatively prime to . From Fermat's theorem, divides for all integers relatively prime to . The least common multiple of and is and thus divides for all integers relatively prime to . It now suffices to find an integer such that . It is natural to try . Modulo , we have , and , but is the least power such that , so is indeed the least power such that .
Final answer
840

Techniques

Multiplicative orderFermat / Euler / Wilson theoremsChinese remainder theorem