Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

number theory senior

Problem

Let be a positive integer and let be the number of positive integers less than that are invertible modulo . If , then what is the remainder when is divided by ?
Solution
Since is a power of , its only prime factor is . So every odd integer is invertible modulo and every even integer is non-invertible modulo . Among the positive integers less than , there are precisely odd integers. Thus,
Final answer
8