Last Two Digits

Find the last two digits of 1 9 39 19^{39} .

19 59 99 39 79

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.

2 solutions

Pranshu Gaba
May 30, 2016

We can use the binomial theorem to find the last two digits of 1 9 39 19^{39} . Writing 19 19 as ( 20 1 ) (20 - 1) :

( 20 1 ) 39 = ( 39 0 ) ( 1 ) 39 + ( 39 1 ) ( 1 ) 38 × 20 + ( 39 2 ) ( 1 ) 37 × 400 + (20 - 1)^{39} = \binom{39}{0} (-1)^{39} + \binom{39}{1} (-1)^{38} \times 20 + \binom{39}{2} (-1)^{37} \times 400 + \cdots

Note that from third term onwards, all of them are divisible by 100 and do not affect the last two digits of 1 9 39 19^{39} .

( 20 1 ) 39 1 + 39 × 20 ( m o d 100 ) 1 + 780 79 \begin{aligned} (20 - 1)^{39} & \equiv -1 + 39 \times 20 \pmod{100}\\ & \equiv 1 + 780 \\ & \equiv 79 \end{aligned}

Hence, the last two digits of 1 9 39 19^{39} are 79 79 . _\square

Soumava Pal
May 28, 2016

Let 1 9 39 = x ( m o d 100 ) 19^{39}=x \pmod {100} where 0 x 100 0\le x \le 100 and gcd ( 19 , 100 ) = 1 \gcd(19,100)=1 implies we can say 1 9 ϕ ( 100 ) = 1 ( m o d 100 ) ) 19^{\phi(100)}=1\pmod{100}) and ϕ ( 100 ) = 40 \phi(100)=40 .

So we need to solve 19 x = 1 ( m o d 100 ) 19x=1\pmod{100} which means we have to find the modular inverse of 19 19 with respect to 100 100 .

The restriction on the range in which x x lies, as well as the fact that it should end with 9 9 , (an odd power of a number ending with 9 9 always ends in 9 9 , so x x must end with 9 9 ), so we need to check the numbers { 19 , 29 , 39 , 49 , 59 , 69 , 79 , 89 , 99 19,29,39,49,59,69,79,89,99 } and we will see that only x = 79 x=79 satisfies the condition 19 x = 1 ( m o d 100 ) 19x=1\pmod{100} , so 79 79 is our required answer.

Another method is to write it as ( 20 1 ) 39 1 + ( 39 38 ) 20 100 ( ) 79 (20-1)^{39} \equiv -1 + \dbinom{39}{38} \cdot 20 - 100(\cdots) \equiv 79 .

That is, expand the expression ( a + b ) 39 (a+b)^{39} .

Pi Han Goh - 5 years ago

Log in to reply

Yes, that would be easier even. :)

Soumava Pal - 5 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...