The Third To Last Digit

Which digit comes at the 3 rd 3^\text{rd} rightmost place of the number below? 201 6 2016 2016^{2016}

6 0 1 5 3 4 2 7

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

Jesse Nieminen
Feb 1, 2016

201 6 2016 1 6 2016 2016^{2016} \equiv 16^{2016} (mod 1000 1000 )

Using Chinese Remainder Theorem

x 1 6 2016 0 x \equiv 16^{2016} \equiv 0 (mod 8 8 )

x 1 6 2016 1 6 16 6 8 3 6 4 4 6 2 116 x \equiv 16^{2016} \equiv 16^{16} \equiv 6^8 \equiv 36^4 \equiv 46^2 \equiv 116 (mod 125 125 ) (Using Euler's Theorem 1 6 ϕ ( 125 ) 1 6 100 16^{\phi\left(125\right)} \equiv 16^{100} (mod 125 125 ) )

Since 8 8 and 125 125 are co-prime, there exists x x (mod 1000 1000 ) satisfying these conditions.

Now x = 8 n x = 8n , for some n n and x = 116 + 125 m x = 116 + 125m , for some m m .

Now we get a linear Diophantine equation 8 n 125 m = 116 8n - 125m = 116 .

Using extended Euclidean algorithm

125 = 15 × 8 + 5 125 = 15 \times 8 + 5

8 = 5 + 3 8 = 5 + 3

5 = 3 + 2 5 = 3 + 2

3 = 2 + 1 3 = 2 + 1

3 2 = 1 3 - 2 = 1

2 × 3 5 = 1 2 \times 3 - 5 = 1

2 × 8 3 × 5 = 1 2 \times 8 - 3 \times 5 = 1

47 × 8 3 × 125 = 1 47 \times 8 - 3 \times 125 = 1

116 × 47 × 8 3 × 116 × 125 = 116 116 \times 47 \times 8 - 3 \times 116 \times 125 = 116

5452 × 47 348 × 125 = 116 5452 \times 47 - 348 \times 125 = 116

Therefore n = 5452 n = 5452 , and thus x = 5452 × 8 616 1 6 2016 201 6 2016 x = 5452 \times 8 \equiv 616 \equiv 16^{2016} \equiv 2016^{2016} (mod 1000 1000 )

And from above we get that the 3rd rightmost digit is 6 \boxed{6} .

Moderator note:

Simple standard solution involving CRT and Euler's Theorem.

Otto Bretscher
Feb 1, 2016

To avoid a tedious application of the Chinese Remainder Theorem, we will use a little trick. 201 6 2016 8 = 252 × 201 6 2015 2 × 1 6 15 77 ( m o d 125 ) \frac{2016^{2016}}{8}=252\times2016^{2015}\equiv 2\times 16^{15}\equiv 77 \pmod{125} . Multiplying through by 8, we find that 201 6 2016 8 × 77 = 616 ( m o d 1000 ) 2016^{2016}\equiv 8\times 77= 616 \pmod{1000} . The answer is 6 \boxed{6}

Wow nice trick! Is this trick valid always?

Aditya Kumar - 5 years, 4 months ago

Log in to reply

It helps that 201 6 2016 2016^{2016} is divisible by 8.

Otto Bretscher - 5 years, 4 months ago

Log in to reply

I solved it by Eulers Theorem , that also avoids tedious calculations of CRT. @Otto Bretscher , @Aditya Kumar

A Former Brilliant Member - 5 years, 4 months ago

Log in to reply

@A Former Brilliant Member Euler's theorem is used above also.

Aditya Kumar - 5 years, 4 months ago

Log in to reply

@Aditya Kumar 125 and 2016 are indeed coprime, so that Euler's theorem applies... that's why I'm dividing by 8 first.

Otto Bretscher - 5 years, 4 months ago

@A Former Brilliant Member Show us your solution!

Otto Bretscher - 5 years, 4 months ago

sorry ......

A Former Brilliant Member - 5 years, 4 months ago

Log in to reply

@A Former Brilliant Member Your (deleted) equation 201 6 2016 1 6 16 ( m o d 1000 ) 2016^{2016}\equiv 16^{16}\pmod{1000} is actually valid, but it does not follow from Euler's Theorem alone. See this note .

Otto Bretscher - 5 years, 4 months ago

Log in to reply

@Otto Bretscher oh i see ,, is result possible as given from the note ?

A Former Brilliant Member - 5 years, 4 months ago

Log in to reply

@A Former Brilliant Member Yes, indeed, the result follows directly from the note.

Otto Bretscher - 5 years, 4 months ago

Log in to reply

@Otto Bretscher got it.... thank you ,,,

A Former Brilliant Member - 5 years, 4 months ago

How did you get that 2 × 1 6 15 77 ( m o d 125 ) 2 \times 16^{15} \equiv 77 \pmod{125} ?

A Former Brilliant Member - 5 years, 4 months ago

Log in to reply

We have 2 50 1 2^{50}\equiv -1 and 2 11 = 2048 48 2^{11}=2048 \equiv 48 so 2 × 1 6 15 = 2 61 48 77 2\times 16^{15}=2^{61}\equiv -48\equiv 77 ( m o d 125 ) \pmod{125}

Otto Bretscher - 5 years, 4 months ago
Aditya Kumar
Jan 31, 2016

We simply have to take modulo 1000.

201 6 2016 = 616 m o d ( 1000 ) 2016^{2016} = 616 \quad mod(1000)

Hence the last 3 digits of 201 6 2016 2016^{2016} is 616. Hence the digit in the 10 0 t h 100^{th} place is 6.

Hence the last 3 digits of 201 6 2016 2016^{2016} is 616. Hence the digit in the 10 0 t h 100^{th} place is 6.

Can you explain this step?

Pi Han Goh - 5 years, 4 months ago

Log in to reply

To find the last three digits of any big number we take mod 1000.

Aditya Kumar - 5 years, 4 months ago

Log in to reply

Are you saying that the third last digit of 2016^2016 is equal to the 100th last digit of the same number?

Pi Han Goh - 5 years, 4 months ago

Log in to reply

@Pi Han Goh Nooooo. The face value of the 100th place digit is 6.

Aditya Kumar - 5 years, 4 months ago

Log in to reply

@Aditya Kumar How did you know that?

Pi Han Goh - 5 years, 4 months ago

Log in to reply

@Pi Han Goh By taking mod 1000.

Aditya Kumar - 5 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...