Show that in any base b 2, the sum of any three single-digit numbers is at most two digits long
Read moreTextbook Solutions for Algorithms
Chapter 1 Problem 1.36
Question
Square roots. In this problem, we’ll see that it is easy to compute square roots modulo a prime p with \(p \equiv 3\) (mod 4).
(a) Suppose \(p \equiv 3\) (mod 4). Show that (p + 1)/4 is an integer.
(b) We say x is a square root of a modulo p if \(a \equiv x^{2}\) (mod p). Show that if \(p \equiv 3\) (mod 4) and if a has a square root modulo p, then \(a^{(p+1) / 4}\) is such a square root.
Solution
Step 1 of 3
The objective of the problem is to show that the square modulo a prime p can be easily computed using . This notation means that the remainder obtained by dividing p by 4 is 3.
Subscribe to view the
full solution
full solution
Title
Algorithms 1
Author
Sanjoy Dasgupta Algorithms, Christos H. Papadimitriou Algorithms, Umesh Vazirani Algorithms
ISBN
9780073523408