Previous Up Next

7.1.21  Solving au+bv=c in ℤ

The iabcuv solves a linear Diophantine equation in two variables.

Note that c must be a multiple of gcd(a,b) for the existence of a solution.

Example

iabcuv(48,30,18)
     

6,−9
          

Previous Up Next