Some higher powers!

What is the remainder when 3 99 99 {3^{99}}^{99} is divided by 7?


The answer is 6.

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

Leonel Castillo
Feb 7, 2018

Let's suppose that 9 9 99 = 6 k + a 99^{99} = 6k + a for some k , a N k,a \in \mathbb{N} . Then 3 9 9 99 3 6 k + a ( 3 k ) 6 × 3 a 3 a m o d 7 3^{99^{99}} \equiv 3^{6k + a} \equiv (3^k)^6 \times 3^a \equiv 3^a \mod 7 . This last congruence is given to us by Fermat's little theorem. So we want to find an a a such that 9 9 99 = 6 k + a 99^{99} = 6k + a . But this is just finding an a a such that 9 9 99 a m o d 6 99^{99} \equiv a \mod 6 . Computing this is not trivial but if we apply the Chinese Remainder Theorem, we would just need to compute 9 9 99 m o d 2 99^{99} \mod 2 and 9 9 99 m o d 3 99^{99} \mod 3 .

On one hand, 9 9 99 0 m o d 3 99^{99} \equiv 0 \mod 3 . This is trivial because 3 3 already divides 99 99 . And it is also obvious that 9 9 99 1 m o d 2 99^{99} \equiv 1 \mod 2 because it is odd. So we have a 0 m o d 3 a \equiv 0 \mod 3 and a 1 m o d 2 a \equiv 1 \mod 2 . Using the Chinese Remainder Theorem we find that this means a 3 m o d 6 a \equiv 3 \mod 6 . And for convenience we may pick the smallest value, a = 3 a = 3 .

Substituting this into our original computation, 3 9 9 99 3 3 27 6 m o d 7 3^{99^{99}} \equiv 3^3 \equiv 27 \equiv 6 \mod 7 .

Please elaborate it a little more. Too perplexing!

Priti Gupta - 3 years, 4 months ago

Log in to reply

I edited it to add more detail.

Leonel Castillo - 3 years, 4 months ago

Log in to reply

Why did you only took it as 6k+a?

Priti Gupta - 3 years, 3 months ago

Log in to reply

@Priti Gupta This is because I know that in congruences mod 7, something raised to the 6th power just evaluates to 1. This allows you to establish the congruence x 6 k + a x 6 k x a ( x k ) 6 x a x a m o d 7 x^{6k + a} \equiv x^{6k} x^a \equiv (x^k)^6 x^a \equiv x^a \mod 7 . This way you reduce the exponent in hopes of achieving an easier computation.

Leonel Castillo - 3 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...