Ask Your Question
0

Can an algorithm be found that provides the value of x such that x² ≡ a (mod b) when given a and b?

asked 2023-05-19 14:40:33 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
3

answered 2023-05-19 14:58:02 +0000

nofretete gravatar image

Yes, an algorithm exists called the Tonelli-Shanks algorithm that can find the value of x such that x² ≡ a (mod b) when given a and b, under certain conditions. Specifically, b must be an odd prime number and a must be a quadratic residue modulo b (i.e. a must have a modular square root modulo b). The Tonelli-Shanks algorithm involves several steps of modular arithmetic and is a computationally efficient method for solving this type of equation.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-19 14:40:33 +0000

Seen: 7 times

Last updated: May 19 '23