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

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : numtheory(deprecated)/jacobi

numtheory(deprecated)

  

jacobi

  

Jacobi symbol

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

jacobi(a, b)

Parameters

a

-

integer

b

-

non-negative integer

Description

• 

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

• 

The function jacobi will compute the Jacobi symbol J⁡ab of a and b.  If the factorization of b is p1k1⁢...⁢psks, then jacobi(a, b) = legendre(a, p1)^k1 * ... * legendre(a, ps)^ks, where legendre⁡a,p is the Legendre symbol of a and p.

• 

Note that jacobi returns unevaluated if given algebraic arguments not of the types specified above.

• 

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

Examples

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

> 

with⁡numtheory:

> 

jacobi⁡12,3

0

(1)
> 

jacobi⁡28,21

0

(2)
> 

jacobi⁡6,11

−1

(3)
> 

legendre⁡6,11

−1

(4)
> 

jacobi⁡226,135

1

(5)
> 

jacobi⁡26,35

−1

(6)
> 

jacobi⁡−286,4272943

1

(7)
> 

jacobi⁡−104,997

−1

(8)
> 

jacobi⁡888,1999

−1

(9)
> 

jacobi⁡a,b

jacobi⁡a,b

(10)

See Also

NumberTheory[JacobiSymbol]

NumberTheory[KroneckerSymbol]

numtheory(deprecated)[legendre]