Modular Square Root - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


NumberTheory

  

ModularSquareRoot

  

modular square root

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

ModularSquareRoot(x, n)

Parameters

x

-

integer

n

-

positive integer

Description

• 

The ModularSquareRoot function computes a non-negative integer  such that  if possible. If not possible, an error message is displayed.

• 

When x has more than one square root, any one of them may be returned.

Examples

The follow numbers have square roots modulo .

(1)

 has a square root modulo .

(2)

(3)

(4)

 does not have a square root modulo  and so an error message is displayed.

(5)

Error, (in NumberTheory:-ModularSquareRoot) 24 is a quadratic non-residue modulo 37

Compatibility

• 

The NumberTheory[ModularSquareRoot] command was introduced in Maple 2016.

• 

For more information on Maple 2016 changes, see Updates in Maple 2016.

See Also

NumberTheory

NumberTheory[ImaginaryUnit]

NumberTheory[ModularRoot]

NumberTheory[PrimitiveRoot]

NumberTheory[RootsOfUnity]

 


Download Help Document