Last 2 digits of π \pi ?

Level 3

What is the last two digits of the number below?

3 1 4 159 \large 3^{14^{159}}


Inspiration


The answer is 81.

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.

3 solutions

We need to find 3 1 4 159 m o d 100 3^{14^{159}} \bmod 100 . Since 3 3 and 100 100 are coprime integers or gcd ( 3 , 100 ) = 1 \gcd(3,100) = 1 , we can apply Euler's theorem and hence Carmichael's lambda function λ ( ) \lambda(\cdot) . We note that λ ( 100 ) = 20 \lambda(100) = 20 . Then we have:

3 1 4 159 3 1 4 159 m o d λ ( 100 ) 3 1 4 159 m o d 20 (mod 100) 3^{14^{159}} \equiv 3^{14^{159} \bmod \lambda(100)} \equiv 3^{14^{159} \bmod 20} \text{ (mod 100)}

We have to solve 1 4 159 m o d 20 14^{159} \bmod 20 . Since gcd ( 14 , 20 ) 1 \gcd(14,20) \ne 1 , we cannot use Euler's theorem. We have to use Chinese remainder theorem and consider the divisors 4 4 and 5 5 separately as follows:

  • Divisor 4 4 : 1 4 159 0 (mod 4) \ \ 14^{159} \equiv 0 \text{ (mod 4)}
  • Divisor 5 5 : 1 4 159 ( 15 1 ) 159 ( 1 ) 159 1 4 (mod 5) \ \ 14^{159} \equiv (15-1)^{159} \equiv (-1)^{159} \equiv - 1 \equiv 4 \text{ (mod 5)}

Therefore 1 4 159 5 n + 4 0 (mod 4) 14^{159} \equiv 5n + 4 \equiv 0 \text{ (mod 4)} n 0 1 4 159 4 (mod 20) \implies n \equiv 0 \implies 14^{159} \equiv 4 \text{ (mod 20)} and

3 1 4 159 3 4 81 (mod 100) 3^{14^{159}} \equiv 3^4 \equiv \boxed{81} \text{ (mod 100)}

Nice I had brute forced till I found 3^20 mod 100 was 1 and then found the pattern in which powers of 14 modulo 20 ( 4,-4 cycle ), never knew that the function you used even existed

Jason Gomez - 4 months, 2 weeks ago

After a while each number's powers will repeat the last digits.

  • The last two digits of 3 20 k 3^{20k} , k-integer, always 01
  • The last two digits of 1 4 10 k 14^{10k} , k-integer and bigger than 0, always 76

Therefore: 3 14 159 ( m o d 100 ) = 1 × 3 ( 14 159 ( m o d 20 ) ) ( m o d 100 ) = 3 ( 76 × 14 9 ( m o d 10 ) ) ( m o d 100 ) = 3 ( 76 × 84 ( m o d 10 ) ) ( m o d 100 ) = 3 84 ( m o d 100 ) = 3 4 ( m o d 100 ) = 81 \begin{aligned} 3\displaystyle^{14\displaystyle^{159}}\pmod {100}&=1\times3\displaystyle^{\left (14\displaystyle^{159}\pmod{20}\right )}\pmod {100}\\ &=3\displaystyle^{\left (76\times14\displaystyle^{9}\pmod{10}\right )}\pmod {100}\\ &=3\displaystyle^{\left (76\times84\pmod{10}\right )}\pmod {100}\\ &=3\displaystyle^{84}\pmod{100}\\ &=3\displaystyle^{4}\pmod{100}\\ &=81 \end{aligned}

Zhiqian Chen
Aug 8, 2020

Taking the last two digits of the result means to get the remainder of dividing it by 100. I experimented and found the loop section of the remainder of the power of three divided by 100:

Power Remainder Power Remainder Power Remainder Power Remainder Power Remainder
0 1 1 3 2 9 3 27 4 81
5 43 6 29 7 87 8 61 9 83
10 49 11 47 12 41 13 23 14 69
15 7 16 21 17 63 18 89 19 67

Starting from the 20th power of 3, the remainder after dividing by 100 begins to loop from the beginning of the table, that is:

3 n 3 ( n m o d 20 ) ( m o d 100 ) 3^n\equiv 3^{(n\mod 20)}\pmod{100}

Then we only need to find out what is the remainder of 14 159 {14}^{159} divided by 20. For this reason, I did the following experiment and found the rule of the remainder of the power of 14 divided by 20:

{ 1 4 0 1 ( m o d 20 ) 1 4 1 14 ( m o d 20 ) 1 4 2 a 16 ( m o d 20 ) ( a > 0 ) 1 4 2 a + 1 4 ( m o d 20 ) ( a > 0 ) \begin{cases}14^0\equiv 1\pmod{20}\\14^1\equiv 14\pmod{20}\\14^{2a}\equiv 16\pmod{20}(a>0)\\14^{2a+1}\equiv 4\pmod{20}(a>0)\end{cases}

So we can know that the remainder of 14 159 {14}^{159} divided by 20 is 4.

By comparing the above table again, we can know that the answer is 81 \boxed{81}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...