Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 4: Let p be an odd prime. We say that a Z p is a square number if there is x Z p so

Question 4: Let p be an odd prime. We say that a Z p is a square number if there is x Z p so that x 2 = a mod p .

(a) Show that the number of squares is exactly ( p 1) / 2.

(b) Let p be a prime. Consider the function square ( a ) , a Z p that equals 1 if a is a square, and equals 1 otherwise. Prove that a ( p 1) / 2 mod p is a square.

(c) Say that p = 4 x + 3 (it can only be 4 x + 1 or 4 x + 3 so we assume its not 4 x + 1). Say that a is a square with respect to p . Show that x = a k +1 mod p is a square root of a . Namely x 2 = a mod p . 1

(d) Give a polynomial algorithm (assuming that you can tell if a number n is prime in O (log n ) time) that find a non square a in Z p

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

Explain the process of Human Resource Planning.

Answered: 1 week ago