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

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 mod⁢b, and −1 if a is a quadratic non-residue mod⁢b.

• 

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

Examples

> 

with⁡GaussInt:

> 

GIquadres⁡−1,3+7⁢I

1

(1)
> 

GIquadres⁡47364374−48434834⁢I,84734834−3434347⁢I

−1

(2)

See Also

GaussInt[GIgcd]

NumberTheory[QuadraticResidue]