What is the smallest positive integer such that satisfies the following equation?
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.
Let N = 2 0 1 7 2 0 1 8 2 0 1 9 . We need to find n = N m o d 2 0 1 9 . We note that both the sum of digits of 20172018 and 2019 are divisible by 3. Therefore, the two numbers are multiples of 3 and are not coprime integers. We have to consider the factors of 2019 separately using the Chinese remainder theorem. 2 0 1 9 = 3 × 6 7 3 has only two prime factors.
Consider factor 3: N = 2 0 1 7 2 0 1 8 2 0 1 9 ≡ 0 (mod 3)
Consider factor 673:
N ≡ 2 0 1 7 2 0 1 8 2 0 1 9 m o d ϕ ( 6 7 3 ) (mod 673) ≡ 2 0 1 7 2 0 1 8 2 0 1 9 m o d 6 7 2 (mod 673) ≡ 2 0 1 7 2 0 1 8 3 (mod 673) ≡ ( 2 0 1 9 2 0 1 9 − 2 0 0 0 1 ) 3 (mod 673) ≡ ( − 2 0 0 0 1 ) 3 (mod 673) ≡ ( − 2 0 1 9 0 + 1 8 9 ) 3 (mod 673) ≡ 1 8 9 3 (mod 673) ≡ 1 8 9 ( 3 5 7 2 1 ) (mod 673) ≡ 1 8 9 ( 3 3 6 5 0 + 2 0 7 1 ) (mod 673) ≡ 1 8 9 ( 5 2 ) (mod 673) ≡ 9 8 2 8 (mod 673) ≡ 4 0 6 (mod 673) Since g cd ( 2 0 1 7 2 0 1 8 , 6 7 3 ) = 1 , Euler’s theorem applies. Euler’s totient function ϕ ( 6 7 3 ) = 6 7 2 1 8 9 2 = 3 5 7 2 1 6 7 3 × 5 0 = 3 3 6 5 0 2 0 7 1 − 2 0 1 9 = 5 2
Therefore,
N ⟹ 6 7 3 k + 4 0 6 k + 1 k ⟹ N ≡ 6 7 3 k + 4 0 6 ≡ 0 (mod 3) ≡ 0 (mod 3) ≡ − 1 ≡ 2 (mod 3) ≡ 6 7 3 k + 4 0 6 ≡ 1 7 5 2 (mod 2019) where k is an integer.