Question

what is the easiest shortest method to calculate: (4^(103)) mod 517 please explain steps in detail...

what is the easiest shortest method to calculate:

(4^(103)) mod 517

please explain steps in detail...

Homework Answers

Answer #1

It can be done using fast modular exponentiation method:

(4^(103)) mod 517.

Step 1:

write binary equivalent for 103

1100111

103= 2^0+2^1+2^2+2^5+2^6

=1+2+4+32+64

(4^(103)) mod 517 = (4^(1+2+4+32+64) mod 517)

= (4^1*4^2*4^4*4^32*4^64) mod 517

Step 2:

4^1 mod 517 = 4

4^2 mod 517 = ( 4^1 * 4^1) mod 517

= (4^1 mod 517 * 4^1 mod 517) mod 517

= (4 * 4) mod 517

4^2 mod 517 = 16 mod 517= 16

4^4 mod 517 = (4^2*4^2) mod 517

= (16 *16) mod 517

4^4 mod 517 = 256 mod 517 = 256

4^8 mod 517 = (4^4*4^4) mod 517

= (256*256) mod 517

4^8 mod 517= 394

4^16 mod 517= ( 4^8 *4^8) mod 517

4^16 mod 517= ( 394*394) mod 517

= 136

4^32 mod 517= (4^16*4^16) mod 517

= (136*136) mod 517

= 401

4^64 mod 517= (4^32*4^32) mod 517

(401*401) mod 517=14

Step 3:

(4^1*4^2*4^4*4^32*4^64) mod 517

=(4^1 mod 517 * 4^2 mod 517 * 4^4 mod 517 * 4^32 mod 517 * 4^64 mod 517) mod 517

=(4*16*256*401*14) mod 517 = 88386816 mod 517

= 496

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
what's the easiest way to calculate: (284^(367)) mod 713 please explain all steps in detail...
what's the easiest way to calculate: (284^(367)) mod 713 please explain all steps in detail...
Please explain in detail show all steps y"-2y'=6e2t+4 Give the general solution to this differential equation
Please explain in detail show all steps y"-2y'=6e2t+4 Give the general solution to this differential equation
PLEASE EXPLAIN IN DETAIL Question: Answer the following question with a clear explanation, showing any steps...
PLEASE EXPLAIN IN DETAIL Question: Answer the following question with a clear explanation, showing any steps or processes used to reach the answer. Explain your process as though you are teaching the concept to a student who isn't familiar with economics. Currently, the demand equation for toasters is Q = 80 – 2P. The current price is $30 per toaster. Is this the best price to charge in order to maximize revenues? If not, what is?
Find the shortest distance from the origin to the curve x^2y^4 = 1 (please do not...
Find the shortest distance from the origin to the curve x^2y^4 = 1 (please do not use the method of Lagrange multiplier)
Please answer Explain, in detail, how you calculate a limit of detection and why it is...
Please answer Explain, in detail, how you calculate a limit of detection and why it is so important to report a limit of detection when presenting results for toxic heavy metals analysis in environmental samples?
Using Chinese Remainder Theorem solve for X: x = 2 (mod 3) x = 4 (mod...
Using Chinese Remainder Theorem solve for X: x = 2 (mod 3) x = 4 (mod 5) x = 5 (mod 8) I have the answer the professor gave me, but I can`t understand what`s going on. So if you could please go over the answer and explain, it would help a lot. x = 2 (mod 3) x = 3a + 2 3a + 2 = 4 (mod 5) (2) 3a = 2 (2) (mod 5) -----> why number...
What is the advantage of financing with debt compared to equity? Please explain in detail.
What is the advantage of financing with debt compared to equity? Please explain in detail.
What is a model organism? How is Arabidopsis a good model? Please explain in detail.
What is a model organism? How is Arabidopsis a good model? Please explain in detail.
What is a Finite Population Correction Factor? Please explain its concept in detail
What is a Finite Population Correction Factor? Please explain its concept in detail
What are the equivalence classes for the relation congruence modulo 6? Please explain in detail.
What are the equivalence classes for the relation congruence modulo 6? Please explain in detail.