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

Online Help

All Products    Maple    MapleSim


GaussInt

  

GIquadres

  

quadratic residue and non-residue

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

GIquadres(a, b)

Parameters

a, b

-

Gaussian integers

Description

• 

The function GIquadres returns 1 if a is a quadratic residue modb, and −1 if a is a quadratic non-residue modb.

• 

The number a is a quadratic residue of b where a and b are coprime if a has a square root modb, that is, there exists a Gaussian integer c such that c2 is congruent to amodb.

Examples

withGaussInt:

GIquadres1,3+7I

1

(1)

GIquadres4736437448434834I,847348343434347I

−1

(2)

See Also

GaussInt[GIgcd]

NumberTheory[QuadraticResidue]