powered by
a x = b mod n
modlin(a, b, n)
gcd(a,n)|b
extGCD
modlin(14, 30, 100) # 95 45 modlin(3, 4, 5) # 3 modlin(3, 5, 6) # [] modlin(3, 6, 9) # 2 5 8
Run the code above in your browser using DataLab