Thanks A Million (Almost), Galileo!

Find the last 6 digits of 1 6 1564 16^{1564} .


The answer is 999936.

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

Otto Bretscher
Feb 7, 2016

Since 4 1 ( m o d 5 ) 4\equiv -1 \pmod{5} , we know that 4 5 5 1 5 5 = 1 ( m o d 5 6 ) 4^{5^5}\equiv -1^{5^5}=-1 \pmod{5^6} . Now 4 5 5 2 2 × 5 5 4^{5^5}\equiv 2^{2\times 5^5} = 2 6250 1 ( m o d 5 6 ) . =2^{6250}\equiv -1 \pmod{5^6}. Multiplying through with 2 6 = 64 2^{6}=64 , we find that 2 6256 = 1 6 1564 64 999936 ( m o d 1 0 6 ) 2^{6256}=16^{1564}\equiv -64\equiv \boxed{999936} \pmod{10^6} .

The second conclusion of your posting is not understandable for me! Can you please explain?

Andreas Wendler - 5 years, 4 months ago

Log in to reply

I will be glad to explain. Which exactly is the second conclusion?

Otto Bretscher - 5 years, 4 months ago

Log in to reply

This one immediately after "...we know that". Thanks.

Andreas Wendler - 5 years, 4 months ago

Log in to reply

@Andreas Wendler Yes, that is an important principle in the modular arithmetic of prime powers: If a b ( m o d p k ) a \equiv b \pmod{p^k} , where p p is prime, then a p b p ( m o d p k + 1 ) a^p\equiv b^p \pmod{p^{k+1}} . To see this, write b = a + n p k b=a+np^k and take the p p th power, using the binomial theorem. All the terms on the RHS except possibly a p a^{p} will factor through p k + 1 p^{k+1} . In my solution, I'm using this principle five times in a row, for p = 5 p=5 .

Does this make sense?

Otto Bretscher - 5 years, 4 months ago

Log in to reply

@Otto Bretscher Thank you very much, Sir. I never heard about this principle but will keep it in mind now! The proof was not difficult with your help!

Andreas Wendler - 5 years, 4 months ago

@Otto Bretscher Woah! This is literally awesome! I'm adding this trick into my arsenal of modular arithmetic tricks! Thank you, Comrade Otto!

Pi Han Goh - 5 years, 4 months ago

May I know what's the relevance of Galileo to this problem?

Pi Han Goh - 5 years, 4 months ago

Log in to reply

Have a look at Galileo's year of birth and you will know! ;-)

Andreas Wendler - 5 years, 4 months ago

Log in to reply

Hahahahahaha! Got it thanks!

Pi Han Goh - 5 years, 4 months ago

I thought about this , a b a\equiv b (mod z) , then , a n b n an\equiv bn (mod z n zn ) for any n n

Nice solution btw ...@Otto Bretscher

A Former Brilliant Member - 5 years, 4 months ago

Log in to reply

Yes, good point: I am using this type of congruence too, with n = 2 6 n=2^6 , to go from 2 6250 1 ( m o d 5 6 ) 2^{6250}\equiv -1 \pmod{5^6} to 2 6256 2 6 ( m o d 1 0 6 ) 2^{6256}\equiv -2^6 \pmod{10^6} .

Otto Bretscher - 5 years, 4 months ago

The condition for a p b p a^{p}\equiv b^{p} mod p k + 1 p^{k+1} should be a a should not be prime right ? @Otto Bretscher

A Former Brilliant Member - 5 years, 4 months ago

Log in to reply

p p is required to be prime... no conditions are imposed on a a and b b

Otto Bretscher - 5 years, 4 months ago
Mark Hennings
Feb 7, 2016

Since 64 = 5 × 13 1 64 = 5\times13 - 1 we have 6 4 5 5 ( 1 ) 5 5 1 64^{5^5} \,\equiv\, (-1)^{5^5} \; \equiv \; -1 modulo 5 6 5^6 . If it were true that 1 6 1564 64 16^{1564} \equiv 64 modulo 5 6 5^6 , then 6 4 5 5 1 6 4 × 391 × 5 5 = 1 6 391 ϕ ( 5 6 ) 1 64^{5^5} \; \equiv \; 16^{4\times391\times5^5} \; =\; 16^{391 \phi(5^6)} \; \equiv \; 1 modulo 5 6 5^6 , which is not the case. Thus 6 4 5 5 ≢ 64 64^{5^5} \not\equiv 64 modulo 5 6 5^6 .

Now 16 = 3 × 5 + 1 16 = 3\times5+1 , so that 1 6 3125 = 1 6 5 5 1 ( 1 6 1564 ) 2 1 6 3128 1 6 3 6 4 2 \begin{array}{rcl} 16^{3125} \; = \; 16^{5^5} & \equiv & 1 \\ \big(16^{1564}\big)^2 \; \equiv \; 16^{3128} & \equiv & 16^3 \; \equiv \; 64^{2} \end{array} modulo 5 6 5^6 , and hence 1 6 1564 ± 64 16^{1564} \,\equiv\, \pm 64 modulo 5 6 5^6 . From the first paragraph, we deduce that 1 6 1564 64 16^{1564} \,\equiv\, -64 modulo 5 6 5^6 .

On the other hand, it is clear that 1 6 1564 0 16^{1564} \,\equiv\, 0 modulo 2 6 2^6 , from which we deduce that 1 6 1564 64 16^{1564} \,\equiv\, -64 modulo 1 0 6 10^6 . The last 6 6 digits of 1 6 1564 16^{1564} are 1000000 64 = 999936 1000000-64 = \boxed{999936} .

Another careful solution! Thanks! (+1)

Here is a question for you, just to clarify: If x 2 6 4 2 ( m o d 5 6 ) x^2 \equiv 64^2 \pmod{5^6} , how do you know that x ± 64 x\equiv \pm 64 ?

Otto Bretscher - 5 years, 4 months ago

Log in to reply

x + 64 x+64 and x 64 x-64 cannot both be divisible by 5 5 , since 128 128 is not. Thus one or the other is divisible by 5 6 5^6 .

Mark Hennings - 5 years, 4 months ago

Log in to reply

Yes, exactly. It would not work mod 8, for example, where x 2 3 2 x^2 \equiv 3^2 has 4 solutions.

Otto Bretscher - 5 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...