Question: Write a function taking as input a1, n1, a2, n2 with gcd(n1, n2) = 1, and returning z such that za1 (modn1)andza2 (modn2). >>> crt(4,5,3,7)
Write a function taking as input a1, n1, a2, n2 with gcd(n1, n2) = 1, and returning z such that za1 (modn1)andza2 (modn2). >>> crt(4,5,3,7) 24
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
