Linear congruence equations

Source: Internet
Author: User

The linear congruence equations are obtained by multiple linear congruence equations. The mathematical notation is the solution to the equation Ai*x≡bi (mod m) (1≤i≤n).

The complete works of the solution must be written in the form of X≡b (mod m), so we can solve all the linear congruence equations in turn.

Because X≡B1 (mod M1), so the x is written in x=b1+m1*t and substituting the second formula, you can get

A (b1+m1*t) ≡b2 (mod m2)

Organized to

A*M1*T≡B2-A*B1 (mod m2)

Then we can solve this one-time congruence equation. When GCD (M2,A*M1) cannot divide b2-a*b1, the original equations have no solution.

Linear congruence equations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.