haar_
lib
0.1.0
ext_gcd
Sections
Returns
In haar_
lib::
math::
ext_
gcd
haar_lib
::
math
::
ext_gcd
Function
ext_gcd
Copy item path
Source
pub fn ext_gcd(a:
u64
, b:
u64
) -> (
i64
,
i64
,
i64
)
Expand description
拡張ユークリッドの互除法
§
Returns
(g, p, q)
: $a * p + m * q = g$を満たす。