[关闭]
@NovLego 2019-12-10T10:22:14.000000Z 字数 2307 阅读 286

How to Recreate CRT

Mathematics


Congruent Numbers


Given ,and be a prime,we have a family numbers s.t
Let be a integer where , has inverse modulus

So where

Two Congruence Equations


Given two equations, and are distinct primes:

Solution 1:
We need find a which satisfies ,so we can find this particular by finding and

Since ,by XGCD,we can solve

Then we can substitute back to find .

Solution 2:
Since relatively primes.
has inverse modulus ,let say ,and has inverse modulus ,let say
That is,we can find a


So, is the solution

is unique up to mod


Task one
Let be another solution of the equations above.
we have:

So
Since are primes, must be divided by

In conclusion, is unique up to

Task two
We've proved that:



Similarly,

Gerneralization


Given equations,and distinct positive integers ,and for all ,.
Solve the following equations:


...

Solution:
let

Exercises


Question:

Answer:

From Euler's theorem,we have:


Programming

Here


Little Thought

If


where are distinct primes and
then

Reason:


So is one of the solutions
From CRT,we know that the solution of these equations is unique up to


Bigger Than Little Thought

Question:
Let be distinct primes

If



and is a multiple of ,
then what is ? why?

Answer:
Since :

So is one of the solutions
From CRT,we know that the solution of these equations is unique up to


添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注