Inspired By Kalpok Guha

12 12 12 \LARGE {12}^{{12}^{12}}

Find the last two digits of the number given.

Inspiration .


The answer is 16.

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

Alex Zhong
Apr 10, 2015

According to Euler's Theorem, a φ ( n ) 1 ( m o d n ) , a^{\varphi (n)} \equiv 1 \pmod {n}, we have

φ ( 100 ) = 40 , \varphi (100) = 40, and 1 2 40 1 ( m o d 100 ) . 12^{40} \equiv 1 \pmod{100}.

3 12 3 4 1 ( m o d 40 ) . 3^{12} \equiv 3^{4} \equiv 1 \pmod {40}.

4 12 4 2 16 ( m o d 40 ) . 4^{12} \equiv 4^{2} \equiv 16 \pmod {40}.

Therefore, 1 2 12 16 ( m o d 40 ) . 12^{12} \equiv 16 \pmod {40}.

Thus, 1 2 1 2 12 1 2 16 ( m o d 100 ) . 12^{12^{12}} \equiv 12^{16 } \pmod{100} .

We have 3 16 96 ( m o d 100 ) , 3^{16} \equiv 96 \pmod{100}, and 2 16 36 ( m o d 100 ) , 2^{16} \equiv 36 \pmod{100},

so,

1 2 1 2 12 1 2 16 96 × 36 × 36 16 ( m o d 100 ) . 12^{12^{12}} \equiv 12^{16 } \equiv 96\times 36 \times 36 \equiv \boxed{16} \pmod{100} .

Moderator note:

Ayush Garg is right. You need some modification before you apply Euler's Theorem.

You got lucky this time . The first line is flawed. You can apply euler's theorem only when gcd (a,n) =1. But gcd(12,40) is not 1 . 12^40 = 76 mod 100 instead.

Ayush Garg - 6 years, 2 months ago

Log in to reply

You are right. Thanks.

Alex Zhong - 6 years, 2 months ago

Can you please provide a solution @Ayush Garg @Mehul Arora

Anik Mandal - 6 years, 1 month ago

Log in to reply

I have provided a solution in the comments. Feel free to check it out. :) Also, if you see any mistakes or typos in it, feel free to notify me. :)

Prasun Biswas - 6 years, 1 month ago

Since it has almost been a month and the OP hasn't corrected his solution, I'm giving the solution in the comments here.

We compute the residue of 1 2 1 2 12 12^{12^{12}} modulo 25 25 and 4 4 separately and then combine them later using CRT.

First, note that 12 0 ( m o d 4 ) 12\equiv 0\pmod{4} . As such, any arbitrary positive exponentiation of 12 12 will be congruent to 0 0 modulo 4 4 . For modulo 25 25 , we can use Euler's theorem since gcd ( 25 , 12 ) = 1 \gcd(25,12)=1 . We have ϕ ( 25 ) = 20 \phi(25)=20 and we get,

1 2 1 2 12 0 ( m o d 4 ) 1 2 1 2 12 1 2 1 2 12 m o d 20 1 2 4 6 m o d 20 1 2 ( 4 ) 3 m o d 20 1 2 4 1 9 2 1 1 1 16 ( m o d 25 ) 12^{12^{12}}\equiv0\pmod4\\~\\ \begin{aligned}12^{12^{12}}\equiv12^{12^{12}~\bmod~20}\equiv 12^{4^{6}~\bmod~20}&\equiv 12^{(-4)^3~\bmod~20}\\ &\equiv 12^{-4}\\ &\equiv 19^{-2}\\ &\equiv 11^{-1}\equiv 16\pmod{25}\end{aligned}

The modular inverse of 11 11 modulo 25 25 is found using Extended Euclidean Algorithm as gcd ( 11 , 25 ) = 1 = 16 × ( 11 ) + ( 7 ) × 25 \gcd(11,25)=1=\color{#3D99F6}{16}\times (11)+(-7)\times 25 . So,

1 2 1 2 12 { 0 ( m o d 4 ) 16 ( m o d 25 ) 1 2 1 2 12 16 ( m o d 100 ) 12^{12^{12}}\equiv\begin{cases}0\pmod4\\ 16\pmod{25}\end{cases}\implies 12^{12^{12}}\equiv 16\pmod{100}

The last step is done using CRT, i.e., the Chinese Remainder Theorem.

Prasun Biswas - 6 years, 1 month ago
Tim Chadwick
Apr 9, 2015

Look at the last 2 digits of the powers of 12. 12 12^2 = ...44 12^3= ...28 . . .12^12 = ...56

Then look at the last 2 digits of 56 up to powers of 12. No need to multiply the whole number, it suffices to multiply only the last 2 digits each time.

Moderator note:

Mehul Arora is right. There's a simpler approach that doesn't require brute force calculation.

Can you provide an elegant solution??? This is Pure Bashing. We could do this, But there is an elegant method to this question ¨ \ddot\smile

Mehul Arora - 6 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...