Math in Christmas: Number Theory Fun

Evaluate 1 2 2 5 2016 m o d 2016. \large 12^{25^{2016}} \bmod{ 2016}.


The answer is 1440.

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

Chew-Seong Cheong
Dec 11, 2016

Since 2016 = 2 5 3 2 7 2016 = 2^53^27 , and gcd ( 12 , 2 ) 1 \gcd (12,2) \ne 1 and gcd ( 12 , 3 ) 1 \gcd(12,3) \ne 1 , let us consider the three prime factors separately.

1 2 2 5 2016 ( 2 2 3 ) 2 5 2016 0 (mod 2 5 ) 1 2 2 5 2016 ( 2 2 3 ) 2 5 2016 0 (mod 3 2 ) 1 2 2 5 2016 1 2 2 5 2016 mod ϕ ( 7 ) (mod 7) Since gcd ( 12 , 7 ) = 1 , Euler’s theorem applies. 1 2 2 5 2016 mod 6 (mod 7) Euler’s totient function ϕ ( 7 ) = 6 1 2 2 5 2016 mod ϕ ( 6 ) mod 6 (mod 7) Since gcd ( 25 , 6 ) = 1 , Euler’s theorem applies. 1 2 2 5 2016 mod 2 mod 6 (mod 7) Euler’s totient function ϕ ( 6 ) = 2 1 2 2 5 0 mod 6 (mod 7) 1 2 1 5 (mod 7) \begin{aligned} 12^{25^{2016}} & \equiv (2^23)^{25^{2016}} \equiv 0 \text{ (mod }2^5) \\ 12^{25^{2016}} & \equiv (2^23)^{25^{2016}} \equiv 0 \text{ (mod }3^2) \\ 12^{25^{2016}} & \equiv 12^{25^{2016} \text{ mod }{\color{#3D99F6}\phi(7)}} \text{ (mod 7)} & \small \color{#3D99F6} \text{Since }\gcd(12,7) = 1 \text{, Euler's theorem applies.} \\ & \equiv 12^{25^{2016} \text{ mod }{\color{#3D99F6}6}} \text{ (mod 7)} & \small \color{#3D99F6} \text{Euler's totient function }\phi(7) = 6 \\ & \equiv 12^{25^{2016 \text{ mod }{\color{#3D99F6}\phi(6)}} \text{ mod }6} \text{ (mod 7)} & \small \color{#3D99F6} \text{Since }\gcd(25,6) = 1 \text{, Euler's theorem applies.} \\ & \equiv 12^{25^{2016 \text{ mod }{\color{#3D99F6}2}} \text{ mod }6} \text{ (mod 7)} & \small \color{#3D99F6} \text{Euler's totient function }\phi(6) = 2 \\ & \equiv 12^{25^0 \text{ mod }6} \text{ (mod 7)} \\ & \equiv 12^1 \equiv 5 \text{ (mod 7)} \end{aligned}

Since 1 2 2 5 2016 { 0 (mod 2 5 ) 0 (mod 3 2 ) 2 5 3 2 n 288 n (mod 2016) 12^{25^{2016}} \equiv \begin{cases} 0 \text{ (mod }2^5) \\ 0 \text{ (mod }3^2) \end{cases} \implies 2^53^2n \equiv 288n \text{ (mod 2016)} , where n n is an integer.

Now, we have:

1 2 2 5 2016 5 (mod 7) 288 n 5 (mod 7) Note that 288 1 (mod 7) n 5 (mod 7) n = 5 1 2 2 5 2016 288 n (mod 2016) 1440 (mod 2016) \begin{aligned} 12^{25^{2016}} & \equiv 5 \text{ (mod 7)} \\ 288n & \equiv 5 \text{ (mod 7)} & \small \color{#3D99F6} \text{Note that } 288 \equiv 1 \text{ (mod 7)} \\ n & \equiv 5 \text{ (mod 7)} \\ \implies n & = 5 \\ \implies 12^{25^{2016}} & \equiv 288n \text{ (mod 2016)} \\ & \equiv \boxed{1440} \text{ (mod 2016)} \end{aligned}

Michael Huang
Dec 9, 2016

The given expression may be very intimidating when it comes to terms not relatively prime, but if you observe their prime factorizations carefully, this problem becomes the nice breeze. :)

Let a a denote the given value to be evaluated. Notice that 2016 = 2 5 × 3 2 × 7 2016 = 2^5 \times 3^2 \times 7 and 12 = 2 2 × 3 12 = 2^2 \times 3 . Since gcd ( a , 2016 ) 1 \gcd(a,2016) \neq 1 , the first step is to evaluate m o d 2 5 \bmod 2^5 , m o d 3 2 \bmod 3^2 and m o d 7 \bmod 7 separately. Then, apply Chinese Remainder Theorem to determine the answer.


Evaluating Separately

Since a a contains 2 5 = 32 2^{5} = 32 and 3 2 = 9 3^{2} = 9 as its divisors, a 0 m o d ( 2 5 3 2 ) \begin{array}{rl} a &\equiv 0 \bmod \left(2^{5} \cdot 3^{2}\right) \end{array}

Note: You can also split into two factors for ( 2 5 3 2 ) \left(2^{5} \cdot 3^{2}\right) . However, that wouldn't be necessary since it suffices that a 0 a \equiv 0 for both of these factors.

Since gcd ( a , 7 ) = 1 \gcd(a,7) = 1 , we can use Euler's Theorem to evaluate a m o d 7 a \bmod 7 , which shows that if b 6 1 m o d 7 b^6 \equiv 1 \bmod 7 where ( b , 7 ) = 1 (b,7) = 1 , for exponents 2 5 2016 ( 6 4 + 1 ) 2016 1 m o d 6 25^{2016} \equiv \left(6 \cdot 4 + 1\right)^{2016} \equiv 1 \bmod 6 so a 12 5 m o d 7 a \equiv 12 \equiv 5 \bmod 7


Final Results

Since we already know that for m o d 2 5 \bmod 2^5 and m o d 3 2 \bmod 3^2 , a 0 a \equiv 0 , apply Chinese Remainder Theorem to obtain a 0 m o d ( 2 5 3 2 ) a \equiv 0 \bmod \left(2^5 \cdot 3^2\right) . Evaluating the following a 0 m o d ( 2 5 3 2 ) a 5 m o d 7 \begin{array}{rl} a &\equiv 0 \bmod \left(2^5 \cdot 3^2\right)\\ a &\equiv 5 \bmod 7 \end{array} gives a = 1440 a = \boxed{1440} . You can simply verify this by Euclidean algorithm to see that a a works for both congruences.

This is a very standard approach. Hope you don't mind my feedback, but I would like to mention that there's a few leeways/shortcuts to simplify your work. (see below)

There isn't a need to break up 2016 into 3 pairwise coprime integers ( 2 5 × 3 2 × 7 ) (2^5\times3^2\times7) . Yes, you're essentially applying Chinese Remainder Theorem , but you just need to break it up into 2 coprime positive integers, namely 288 = 2 5 × 3 2 × 7 \underbrace{288}_{=2^5\times3^2} \times 7 .

It's easy to show that for integer N 3 N\geq 3 , 288 divides 1 2 N 12^N , hence 1 2 2 5 2016 12^{25^{2016}} is divisible by 288. And by Fermat's little theorem ,

1 2 2 5 2016 m o d 7 = 1 2 ( 2 5 2016 m o d 6 ) m o d 7 = 1 2 1 2016 m o d 7 = 5. 12^{25^{2016}} \bmod 7 = 12^{(25^{2016} \bmod 6)} \bmod 7 = 12^{1^{2016}} \bmod 7 = 5 .

Hence, we're down to solving the 2 (not 3) linear congruences:

{ X 0 ( m o d 288 ) X 5 ( m o d 7 ) . \begin{cases} X \equiv 0 \pmod{288} \\ X \equiv 5 \pmod 7. \end{cases}

A trial and error (by listing the first few multiples of 288) and comparing with modulo 7 shows that X 1440 ( m o d 2016 ) X \equiv \boxed{1440} \pmod{2016} .

Pi Han Goh - 4 years, 6 months ago

Log in to reply

Yes. Could have done that. Chose to edit my solution a little bit. :)

Michael Huang - 4 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...