Skip to main content
OlympiadHQ

Browse · MathNet

Print

Ireland_2017

Ireland 2017 number theory

Problem

A function is called loggy if it satisfies the following two conditions: (i) for all that are not divisible by ; (ii) for all . Determine, with proof,

a. if there exists a loggy function for which ; b. if there exists a loggy function for which .
Solution
a. Because , conditions (i) and (ii) imply If a loggy function satisfies , we get . But the congruence has no solution . Hence, there does not exist a loggy function satisfying .

b. Note that (ii) implies that for all that are not divisible by . In particular, . If , this means that for all positive integers we need to have . We claim that each integer that is not divisible by is congruent to with a unique . The reason is that the multiplicative order of (mod ) is equal to . In other words, no two of the numbers are congruent (mod ). To see this, suppose for some . If , there exist positive integers such that either , or . Because both equations imply . As is a factor of , we just check to see that and so as well. Therefore, if and , we have and would imply , which is impossible. Define a function as follows: Because the value of depends only on (mod ), condition (i) is satisfied. The function is defined for all integers, because each integer that is not divisible by is congruent to a unique . Finally, to see that Condition (ii) holds, let and both be integers between and and note that in case , we have by Fermat's Little Theorem and so Hence, we obtain the required Therefore, this function is a loggy function that satisfies .
Final answer
a. No such function exists. b. Yes, such a function exists.

Techniques

Inverses mod nFermat / Euler / Wilson theoremsPrimitive roots mod p / p^nMultiplicative order