Back to Results
First PageMeta Content



Python program implementing the extended binary GCD algorithm. def ext_binary_gcd(a,b): """Extended binary GCD. Given input a, b the function returns d, s, t such that gcd(a,b) = d = as + bt.""" u, v, s, t, r = 1, 0, 0,
Add to Reading List

Document Date: 2009-11-18 13:56:40


Open Document

File Size: 26,74 KB

Share Result on Facebook

ProgrammingLanguage

Python / /

Technology

alpha / extended binary GCD algorithm / /

SocialTag