How many integer solutions between 0 and 2015 does the above congruency have?
Bonus question : What about
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We claim that x 6 0 ≡ 1 ( m o d 2 0 1 5 ) iff g c d ( x , 2 0 1 5 ) = 1 . It follows that the congruency has ϕ ( 2 0 1 5 ) = 1 4 4 0 solutions.
If g c d ( x , 2 0 1 5 ) = 1 , then x 6 0 ≡ 1 modulo 5, 13, and 31, by Fermat's little theorem. Thus x 6 0 ≡ 1 ( m o d 2 0 1 5 ) since 2 0 1 5 = 5 ∗ 1 3 ∗ 3 1 . (Alternatively, use the Carmichael Lambda λ ( 2 0 1 5 ) = 6 0 . )
If x 6 0 ≡ 1 ( m o d 2 0 1 5 ) , then x 6 0 + 2 0 1 5 m = 1 for some m , so that g c d ( x , 2 0 1 5 ) = 1 .