2024 AMC 10B Problems/Problem 18
Solution 1
First note that the totient function of is
. We can set up two cases, which depend on whether a number is relatively prime to
.
If is relatively prime to
, then
because of Euler's Totient Theorem.
If is not relatively prime to
, it must be have a factor of
. Express
as
, where
is some integer. Then
.
Therefore, can only be congruent to
or
. Our answer is
.
~lprado