For function as defined above, find the value of
This is an original problem
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 ( n ) = Number of 2019s = n 2 0 1 9 2 0 1 9 ⋯ 2 0 1 9 2 0 1 9 . Since g cd ( N ( n ) , 7 2 ) = 1 , we consider N ( n ) m o d 8 and N ( n ) m o d 9 separately using Chinese remainder theorem .
For factor 8: N ( n ) ≡ 1 0 4 N ( n − 1 ) + 2 0 1 9 ≡ 3 (mod 8) . Therefore, N ( n ) ≡ 8 m + 3 , where m is an integer.
For factor 9: We note that the sum of digits of N ( n ) is 1 2 n . Since 1 2 n is divisible by 9, when n is a multiple of 3, then N ( n ) m o d 9 = 0 , when 3 ∣ n . Then there are three cases:
⎩ ⎪ ⎨ ⎪ ⎧ If n m o d 3 = 0 If n m o d 3 = 1 If n m o d 3 = 2 ⟹ N ( n ) ≡ 1 2 n ≡ 0 (mod 9) ⟹ N ( n ) ≡ 1 2 n ≡ 3 (mod 9) ⟹ N ( n ) ≡ 1 2 n ≡ 6 (mod 9) ⟹ 8 m + 3 ≡ 0 (mod 9) ⟹ m = 3 ⟹ ϕ ( 3 ) m o d 7 2 = 2 7 ⟹ 8 m + 3 ≡ 3 (mod 9) ⟹ m = 0 ⟹ ϕ ( 1 ) m o d 7 2 = 3 ⟹ 8 m + 3 ≡ 6 (mod 9) ⟹ m = 6 ⟹ ϕ ( 2 ) m o d 7 2 = 5 1
Therefore,
x = − ϕ 2 ( 2 0 1 7 ) + ϕ 2 ( 2 0 1 8 ) − ϕ 2 ( 2 0 1 9 ) + 2 ( ϕ ( 2 0 1 9 ) + ϕ ( 2 0 1 8 ) ) = − ϕ 2 ( 1 ) + ϕ 2 ( 2 ) − ϕ 2 ( 3 ) + 2 ( ϕ ( 3 ) + ϕ ( 2 ) ) = − 3 2 + 5 1 2 − 2 7 2 + 2 ( 2 7 + 5 1 ) = 2 0 1 9