There are two holiday brilliant people with different numbers as shown in the following dialogue:
"My number is ," Newt Year said.
"My number is ," Fantastic Santa said.
"Ha! My number is greater than yours!"
"That is certainly true, but what if suppose I have the highest remainder after dividing both numbers by 2017? Having the highest number is meaningless! Ho! Ho! Ho!"
"We'll see about that! It's time to do some mathematics, solvers!"
Who has the highest remainder after dividing by 2017?
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's find the last 2 digits of 1 2 3 1 first.
A simple way to evaluate the last 2 digits of 1 2 3 1 is via binomial expansion follow by repeated squaring.
1 2 3 1 = = ≡ ≡ ≡ ≡ ≡ ≡ ≡ ≡ ( 1 0 + 2 ) 3 1 1 0 0 ( ⋯ ) + 2 3 1 + ( 1 3 1 ) 1 0 ⋅ 2 3 0 2 3 0 ( 2 + 3 1 × 1 0 ) = 2 3 0 × 3 1 2 2 3 0 × 1 2 ( 2 1 0 ) 3 × 1 2 2 4 3 × 1 2 1 2 4 × 8 ( 1 2 2 ) 2 × 8 4 2 × 8 8 8 ( m o d 1 0 0 )
Now, let's find the last 2 digits of 2 5 1 2 = ( 5 2 ) 1 2 = 5 2 4 .
Hence, the last 2 digits of 2 5 1 2 is 25.
By comparing the last 2 digits of these two numbers, the answer is Fantastic Santa with 2 5 1 2 .