HP Prime for All

English  Русский 

Syntax

iegcd(a,b)

Description

Extended greatest common divisor for two integers. Returns [u,v,igcd(a,b)] such that a*u+b*v=igcd(a,b).

Example

iegcd(14, 21) returns [-1, 1, 7]

iegcd — Discussion