Square roots. In this problem, well see that it is easy to compute square roots modulo a | StudySoup

Textbook 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 p identical to 3 open parentheses m o d space 4 close parentheses. This notation means that the remainder obtained by dividing p by 4 is 3.

 

Subscribe to view the
full solution

Title Algorithms  1 
Author Sanjoy Dasgupta Algorithms, Christos H. Papadimitriou Algorithms, Umesh Vazirani Algorithms
ISBN 9780073523408

Square roots. In this problem, well see that it is easy to compute square roots modulo a

Chapter 1 textbook questions

×

Login

Organize all study tools for free

Or continue with
×

Register

Sign up for access to all content on our site!

Or continue with

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back