Starting from the right of its decimal representation, find the sum of the first three non-zero digits of .
Details and Assumptions
The number is six hundred factorial.
As an explicit example, first three non-zero digits of are and their sum is .
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 us write 6 0 0 ! on format like below:
6 0 0 ! = ( 5 × 1 0 × 1 5 × 2 0 … × 5 9 5 × 6 0 0 ) × ( 1 × 2 × 3 × 4 ) × ( 6 × 7 × 8 × 9 ) × … × ( 5 9 6 × 5 9 7 × 5 9 8 × 5 9 9 ) = ( 5 1 2 0 × 1 2 0 ! ) × ( 1 × 2 × 3 × 4 ) × ( 6 × 7 × 8 × 9 ) × … × ( 5 9 6 × 5 9 7 × 5 9 8 × 5 9 9 ) = ( 1 0 1 2 0 × 1 2 0 ! ) × 2 − 1 2 0 × ( 1 × 2 × 3 × 4 ) × ( 6 × 7 × 8 × 9 ) × … × ( 5 9 6 × 5 9 7 × 5 9 8 × 5 9 9 ) .
Let us observe all product of each black item in the bracket. We can see that all last three digits of the product is 2 4 . So, we can say that the last three digits of
1 0 1 2 0 6 0 0 ! ≡ ( 1 2 0 ! ) 120 times ( × 1 2 × 1 2 × 1 2 … × 1 2 ) ≡ ( 1 2 0 ! ) × 1 2 1 2 0 ( m o d 1 0 0 0 ) ≡ ( 1 2 0 ! ) × 2 − 1 2 0 120 times ( × 2 4 × 2 4 × 2 4 … × 2 4 )
Using same method above, we will determine the last three digits non zero of ( 1 2 0 ! ) .
1 0 2 4 1 2 0 ! ≡ ( 2 4 ! ) × 1 2 2 4 ( m o d 1 0 0 0 )
And the last for 2 4 !
1 0 4 2 4 ! ≡ ( 4 ! ) × 2 1 × 2 2 × 2 3 × 2 4 × 1 2 4 ≡ 5 7 6 × 1 2 4 ( m o d 1 0 0 0 ) .
Finally, we have
1 0 1 2 0 6 0 0 ! ≡ 1 2 ( 1 2 0 + 2 4 + 4 ) × 5 7 6 ≡ 1 2 ( 1 4 8 ) × 5 7 6 ( m o d 1 0 0 0 ) .
For simplicity, we will work with modulo 8 and 1 2 5 to use Euler's theorem. Now we have:
4 1 4 8 ≡ { 1 6 7 4 ≡ 0 ( m o d 8 ) ( 4 ϕ ( 1 2 5 ) ) × 4 4 8 ≡ 8 6 ( m o d 1 2 5 )
and 3 1 4 8 ≡ { 9 7 4 ≡ 1 ( m o d 8 ) ( 3 ϕ ( 1 2 5 ) ) × 3 4 8 ≡ 1 1 1 ( m o d 1 2 5 )
Note that ϕ ( 1 2 5 ) = ( 1 − 5 1 ) × 1 2 5 = 1 0 0
By using Chinese Reminder Theorem we shall get that 4 1 4 8 ≡ 3 3 6 ( m o d 1 0 0 0 ) and 3 1 4 8 ≡ 3 6 1 ( m o d 1 0 0 0 )
Hence,
1 0 1 2 0 6 0 0 ! ≡ 4 9 6 ( m o d 1 0 0 0 ) ≡ 4 1 4 8 × 3 1 4 8 × 5 7 6 ≡ 3 3 6 × 3 6 1 × 5 7 6 ≡ 6 9 8 6 6 4 9 6 .
Therefore, the final answer is 4 + 9 + 6 = 1 9
You can check this for other similar problem