numtheory(deprecated)/migcdex - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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

numtheory(deprecated)

  

migcdex

  

compute solutions to the modulo N extended GCD problem

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

migcdex(N, a, b1, b2, ..., bn)

Parameters

N

-

positive integer

a

-

integer

b1, b2, ..., bn

-

integers

Description

• 

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

• 

The function migcdex computes a solution to the modulo N greatest common divisor problem for an arbitrary number of integers.

• 

The return value is the sequence c1,c2,...,cn of non-negative integers with

gcdN,a,b1,...,bn=gcdN,a+c1b1+...+cnbn

  

such that cn,...,c2,c1 is lexicographically minimal among all such sequences.

Examples

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

withnumtheory:

migcdex150,0

migcdex150,5,75,25

0,0

(1)

migcdex150,9,75,25

1,1

(2)

See Also

igcdex

NumberTheory[ModExtendedGCD]

numtheory(deprecated)