numtheory(deprecated)/mcombine - Maple Help

numtheory(deprecated)

 mcombine
 Chinese remaindering

 Calling Sequence mcombine(a, ra, b, rb)

Parameters

 a, ra, b, rb - integers

Description

 • Important: The numtheory package has been deprecated.  Use the superseding command NumberTheory[ChineseRemainder] instead.
 • The mcombine command computes an integer x such that $x=\mathrm{ra}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{mod}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}a$ and $x=\mathrm{rb}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{mod}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}b$, for a and b. If no integer x exists then it returns FAIL.
 • For a definition, see Chinese remainder theorem.

Examples

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

 > $\mathrm{with}\left(\mathrm{numtheory}\right):$
 > $\mathrm{mcombine}\left(6,5,9,7\right)$
 ${\mathrm{FAIL}}$ (1)
 > $\mathrm{mcombine}\left(7,4,11,5\right)$
 ${60}$ (2)