Question: A modular-adder device 'M' operates with n-bit registers. You feed it two n-bit natural numbers 'a' and 'b'. It adds them, divides by 2^n, keeps

A modular-adder device 'M' operates with n-bit registers. You feed it two n-bit natural numbers 'a' and 'b'. It adds them, divides by 2^n, keeps the quotient 'q' a secret, and publishes the remainder 'r'. Hint: Before answering, experiment with small addition tables. i) If a = 2^(n-1) and r = 2^n - 1, what are 'b' and 'q'? ii) If a = 2^(n-1) and r = 2^(n-1) - 1, what are 'b' and 'q'?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!