Last 3 digits

Find the last three digits of 1 7 256 17^{256} .


The answer is 681.

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

Zach Abueg
May 19, 2017

Note that 256 = 2 8 \displaystyle 256 = 2^8 . We can then square 17 17 eight times, finding the result modulo 1000 1000 every time until we find 1 7 256 ( m o d 1000 ) \displaystyle 17^{256} \pmod{1000} .

1 7 2 289 ( m o d 1000 ) \displaystyle 17^2 \ \equiv \ 289 \pmod {1000}

1 7 4 ( 1 7 2 ) 2 28 9 2 83521 521 ( m o d 1000 ) \displaystyle 17^4 \ \equiv \ (17^2)^2 \ \equiv \ 289^2 \ \equiv \ 83521 \ \equiv \ 521 \pmod{1000}

1 7 8 ( 1 7 4 ) 2 52 1 2 271441 441 ( m o d 1000 ) \displaystyle 17^8 \ \equiv \ (17^4)^2 \ \equiv \ 521^2 \ \equiv \ 271441 \ \equiv \ 441 \pmod{1000}

1 7 16 ( 1 7 8 ) 2 44 1 2 481 ( m o d 1000 ) \displaystyle 17^{16} \ \equiv \ (17^8)^2 \ \equiv \ 441^2 \ \equiv \ 481 \pmod{1000}

1 7 32 48 1 2 361 ( m o d 1000 ) \displaystyle 17^{32} \ \equiv \ 481^2 \ \equiv \ 361 \pmod{1000}

1 7 64 36 1 2 321 ( m o d 1000 ) \displaystyle 17^{64} \ \equiv \ 361^2 \ \equiv \ 321 \pmod{1000}

1 7 128 32 1 2 41 ( m o d 1000 ) \displaystyle 17^{128} \ \equiv \ 321^2 \ \equiv \ 41 \pmod{1000}

1 7 256 4 1 2 681 ( m o d 1000 ) \displaystyle 17^{256} \ \equiv \ 41^2 \ \equiv \ \boxed{681} \pmod{1000}

Nice solution.

Hana Wehbi - 4 years ago

Log in to reply

Thank you, Hana!

Zach Abueg - 4 years ago

This is absolutely MINDLESS!! If you're given that problem in an exam, and I'm not insulting anyone, you can't possibly do the solution performed by Zach Abueg. It is my incompetency that I am not able to find a better solution than this. But I beg someone to do it. PLEASE!!!

Rajdeep Ghosh - 4 years ago

Log in to reply

What is the problem, my friend?

Zach Abueg - 4 years ago

Log in to reply

nothing in particular. I was just thinking whether there was a better solution than the one you have.

Rajdeep Ghosh - 4 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...