Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

number theory senior

Problem

For how many integers satisfying is it true that ?
Solution
If is not relatively prime with , then the modular inverse of does not exist. Multiplying both sides of the congruence by yields that , or equivalently that . Since is not divisible by , it follows that at least one of or must be divisible by . Also, since is not divisible by , then both and are even, and exactly one of them is divisible by . Thus, will always divide into , and so the statement is true for every integer relatively prime to . The answer is the set of numbers relatively prime to , namely . There are such numbers.

The number of positive integers smaller than and relatively prime to is also given by the Euler's totient function.
Final answer
8