Close
Close window
numtheory(deprecated)/quadres - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


Home : Support : Online Help : numtheory(deprecated)/quadres
[フレーム] [フレーム]

numtheory(deprecated)

quadres

check if a number is a quadratic residue mod another

Calling Sequence

quadres(a, b)

Parameters

a, b

-

integer

Description

Important: The numtheory package has been deprecated . Use the superseding command NumberTheory[QuadraticResidue] instead.

The function quadres will compute a generalized Legendre symbol Lab of a and b, which is defined to be 1 if a is a quadratic residue modband -1 if a is a quadratic non-residue modp. The number a is a quadratic residue mod b if it has a square root modb; i.e., an integer c exists such that c2 is congruent to amodb.

The command with(numtheory,quadres) allows the use of the abbreviated form of this command.

Examples

Important: The numtheory package has been deprecated . Use the superseding command NumberTheory[QuadraticResidue] instead.

>

withnumtheory:

>

quadres74,101

−1

(1)
>

quadres0,73

1

(2)
>

quadres22,11

1

(3)
>

quadres5,256

−1

(4)
>

quadres2342,1904

−1

(5)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /