Math in Christmas: Christmas VS New Year

There are two holiday brilliant people with different numbers as shown in the following dialogue:

"My number is 1 2 31 12^{31} ," Newt Year said.

"My number is 2 5 12 25^{12} ," 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?

Fantastic Santa with 2 5 12 25^{12} Newt Year with 1 2 31 12^{31}

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.

1 solution

Pi Han Goh
Dec 31, 2016

Let's find the last 2 digits of 1 2 31 12^{31} first.

A simple way to evaluate the last 2 digits of 1 2 31 12^{31} is via binomial expansion follow by repeated squaring.

1 2 31 = ( 10 + 2 ) 31 = 100 ( ) + 2 31 + ( 31 1 ) 10 2 30 2 30 ( 2 + 31 × 10 ) = 2 30 × 312 2 30 × 12 ( 2 10 ) 3 × 12 2 4 3 × 12 1 2 4 × 8 ( 1 2 2 ) 2 × 8 4 2 × 8 88 ( m o d 100 ) \begin{aligned} 12^{31} &=& (10 + 2)^{31} \\ &=& 100(\cdots) + 2^{31} + \dbinom{31}1 10 \cdot 2^{30} \\ & \equiv & 2^{30} (2 + 31\times10) = 2^{30} \times 312 \\ & \equiv & 2^{30} \times 12 \\ &\equiv & (2^{10})^3 \times 12 \\ &\equiv & 24^3\times 12 \\ &\equiv & 12^4 \times 8 \\ &\equiv & (12^2)^2 \times 8 \\ &\equiv & 4^2 \times 8 \\ &\equiv & 88 \pmod{100} \end{aligned}

Now, let's find the last 2 digits of 2 5 12 = ( 5 2 ) 12 = 5 24 25^{12}= (5^2)^{12} = 5^{24} .

Claim: The last 2 digits of 5 n 5^n is 25 for all positive integers n 2 n\geq 2 .

Proof: T̶h̶e̶ ̶p̶r̶o̶o̶f̶ ̶i̶s̶ ̶l̶e̶f̶t̶ ̶a̶s̶ ̶a̶n̶ ̶e̶x̶e̶r̶c̶i̶s̶e̶ ̶f̶o̶r̶ ̶t̶h̶e̶ ̶r̶e̶a̶d̶e̶r̶s̶.̶

This can be easily shown by induction .

Base cases: When n = 2 n=2 , the last 2 digits of 5 n 5^n is 25, which is true.
Inductive hypothesis: Assume it's true that for n = k n=k be a positive integer greater or equal to 2, than the last 2 digits of 5 k 5^k is 25.
Similarly, the last 2 digits of 5 k + 1 5^{k+1} is 25 × 5 = 125 25 ( m o d 100 ) 25\times 5 = 125 \equiv 25 \pmod{100} as well.
Thus, then it is also true that n = k + 1 n=k+1 .

By induction, our claim is true.

Hence, the last 2 digits of 2 5 12 25^{12} is 25.

By comparing the last 2 digits of these two numbers, the answer is Fantastic Santa with 2 5 12 25^{12} .

Excellent solution and nice read :)

Michael Huang - 4 years, 5 months ago

Log in to reply

Hm, the "date^month" format isn't consistent, so the statement of "My number is ..." becomes slightly confusing.

Calvin Lin Staff - 4 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...