Chapter 1: Q11E (page 48)
Is divisible by ?
Short Answer
Both the numbers are divisible by .
Chapter 1: Q11E (page 48)
Is divisible by ?
Both the numbers are divisible by .
All the tools & learning materials you need for study success - in one app.
Get started for freeJustify the correctness of the recursive division algorithm given in page , and show that it takes time bit inputs.
Quadratic residues. Fix a positive integer N. We say that a is a quadratic residue modulo N ifthere exists a such that .
(a) Let N be an odd prime and be a non-zero quadratic residue modulo N. Show that there are exactly two values in satisfying .
(b) Show that if N is an odd prime, there are exactly quadratic residues in .
(c) Give an example of positive integers a and N such thathas more than two solutions in .
Give an efficient algorithm to compute the least common multiple of two n-bit numbers and , that is, the smallest number divisible by both and . What is the running time of your algorithm as a function of ?
What is the least significant decimal digit of ? (Hint: For distinct primesp,q, and any a is not equal to role="math" localid="1658726105638" , we proved the formula role="math" localid="1658726171933" in Section 1.4.2.)
Suppose you want to compute the nth Fibonacci number , modulo an integer . Can you find an efficient way to do this?
What do you think about this solution?
We value your feedback to improve our textbook solutions.