Find the remainder of 3 + 3 3 + 3 3 3 + 3 3 3 3 + ⋯ + 2 0 1 9 digits 3 3 3 … 3 divided by 6 7 3 .
Hint: 6 7 3 is a prime number.
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.
Nice and clean! I didn’t notice that 9 9 9 = 2 7 ⋅ 3 7 which saves some hustles of finding modular inverse! Thanks!
We split this problem into two parts: (I) find a closed form expression of the given sum; (II) mod it by 6 7 3 .
Part I: Find a closed form expression of the sum
For all positive integer n , define a n = n digits 3 3 3 … 3 , and the partial sum of sequence ( a n ) S n : = a 1 + a 2 + a 3 + ⋯ + a n : = 3 + 3 3 + 3 3 3 + ⋯ + 3 3 3 … 3 . The key is to observe that 3 a k + 1 = 1 0 k , for all k ≥ 1 , and sum this identity over k = 1 , 2 , 3 , … , n to get 3 S n + n = geometric series k = 1 ∑ n 1 0 k = 9 1 0 ( 1 0 n − 1 ) , which means, S n = 2 7 1 0 ( 1 0 n − 1 ) − 3 n .
Part II: Mod the desired sum by 6 7 3
Now we proceed to find the remainder of S 2 0 1 9 divided by p = 6 7 3 .
Firstly, by the Euclidean algorithm together with Bézout’s lemma , we can find the modular inverse of 2 7 modulo p to be 3 4 9 .
Specifically, 1 = gcd ( 2 7 , 6 7 3 ) = 3 4 9 ⋅ 2 7 − 1 4 ⋅ p 6 7 3 ≡ 3 4 9 ⋅ 2 7 ( m o d p ) , or put simply, 2 7 − 1 ≡ 3 4 9 ( m o d p ) . Hence, S 2 0 1 9 = 2 7 1 0 ( 1 0 2 0 1 9 − 1 ) − 3 2 0 1 9 = 1 0 ⋅ 2 7 − 1 ⋅ ( 1 0 2 0 1 9 − 1 ) − 6 7 3 ≡ 1 0 ⋅ 3 4 9 ⋅ ( 1 0 2 0 1 9 − 1 ) ≡ 1 2 5 ⋅ ( 1 0 2 0 1 9 − 1 ) ( m o d p ) . Finally, we tackle the term 1 0 2 0 1 9 − 1 modulo p with the aide of Fermat’s little theorem : 1 0 p ≡ 1 0 ( m o d p ) , or, as 2 0 1 9 = 3 p , 1 0 2 0 1 9 − 1 = ( 1 0 p ) 3 − 1 ≡ 1 0 3 − 1 = 9 9 9 ≡ 3 2 6 ( m o d p ) . Therefore, the desired value is S 2 0 1 9 ≡ 1 2 5 ⋅ 3 2 6 = 4 0 7 5 0 ≡ 3 7 0 ( m o d p ) . And this conclude the solution.
Problem Loading...
Note Loading...
Set Loading...
We are interested in the number X = n = 1 ∑ 2 0 1 9 3 1 0 n − 1 = 2 7 1 0 ( 1 0 2 0 1 9 − 1 ) − 6 7 3 Now 1 0 6 7 2 ≡ 1 ( m o d 6 7 3 ) , so 1 0 2 0 1 9 ≡ 1 0 3 × 6 7 3 ≡ 1 0 3 ( m o d 6 7 3 ) , so 1 0 2 0 1 9 − 1 ≡ 9 9 9 = 2 7 × 3 7 ( m o d 6 7 3 ) , and hence X ≡ 2 7 1 0 ( 1 0 2 0 1 9 − 1 ) ≡ 1 0 × 3 7 ≡ 3 7 0 ( m o d 6 7 3 )