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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!