Skip to main content

What are the last 3 digit of 2^2017?

I will provide two methods for this.
Method 1 (Easy way) :
USE A CALCULATOR. You will get the answer in a matter of seconds like I got.
Clearly, the answer is 072.
Method 2 (Slight harder way) :
Here, I want to find the answer without using the calculator. Let's try it.
Note:- I will be making use of Congruence Modulo and Euler's Theorem, so these are the prerequisites.
Another way to put the question is “Find the remainder when 22017 is divided by 1000”.
First of all we factorise 1000 as:
1000=23×53
Next, we find the remainder by 23 and 53seperately.
It's obvious that 23 divides 22017. Hence,
220170(mod8)
Now to find the remainder by 125 (or 5^3), we use Euler's Theorem. Euler's theorem is applicable in this case since gcd(2,125)=1.
Φ(125)=125(115)=100
Hence, 2Φ(125)1(mod125)
21001(mod125)
220001(mod125)
22017217(mod125)
Since 217=131072,21772(mod125)
2201772(mod125)
At this point, one may apply Chinese Remainder Theorem but checking few cases will yield the answer faster.
Since the number leaves a remainder 72 when divided by 125, the last digits can be:
125×0+72=072, or
125×1+72=197, or
125×2+72=322, or
125×3+72=447, or
125×4+72=572, or
125×5+72=697, or
125×6+72=822, or
125×7+72=947
We also know that the number is divisible by 8. The only number from the above list which is divisible by 8 is 72. Hence the answer is 072.

I would like to share one more thing. I calculated 2^17 in my head (since use of calculator is not allowed). How did I do that? Let's see:
210=1024
220=10242=(1000+24)2
=10002+2×1000×24+242
=1000000+48000+576
=1048576
Now divide this number by 8 to get 2^17.
10485768=131072
Easy, no?

Comments

Popular posts from this blog

how is tan (A+B) = [tan A + tan B]/[1 - tan A tan B]?

How is tan (A+B) = [tan A + tan B]/ [1 - tan A tan B]? Method 1: Let A = 30 deg and B = 45 deg. LHS = tan (30+45) = tan 75 = 3.732050808 RHS = [tan A + tan B]/[1 - tan A tan B] = [tan 30 + tan 45]/[1 - tan 30 tan 45] = [0.577350269 + 1]/[1 - 0.577350269*1] = 1.577350269/0.42264973 = 3.732050808 = LHS Proved. Method 2: tan (A+B) = [tan A + tan B]/[1 - tan A tan B] RHS = [tan A + tan B]/[1 - tan A tan B] =[(sin A/cos A) + (sin B/cos B)]/[1-(sin A/cos A)(sin B/cos B) = [sin A cos B + cos A sin B]/[cos A cos B][1 - sin A sin B/(cos A cos B)] = sin (A+B)/{[cos A cos B][cos A cos B - sin A sin B]/(cos A cos B)} = sin (A+B)/[cos A cos B - sin A sin B = sin (A+B)/cos (A+B) = tan (A+B) = LHS. Proved. Thanks. source:Quara

ALGEBRA is great fun

Algebra is great fun - you get to solve puzzles! With computer games you play by running, jumping or finding secret things. Well, with Algebra you play with letters, numbers and symbols, and you also get to find secret things! And once you learn some of the "tricks", it becomes a fun challenge to work out how to use your skills in solving each "puzzle".