Calculate all the solutions that are created at the same time by the X-4 (mod 5) and X-5 (mod 11) Enable equations.

Source: Internet
Author: User

Introduction to algorithms exercise 31.5-1

According to the remainder theorem of China,

N = 55

A1 = 4,N1 = 5,M1 = 11,11-1 limit 1 (mod 5)

A2 = 5,N2 = 11,M2 = 5, 5-1 running 9 (mod 11)

C1 = 11 (1 mod 5) = 11

C2 = 5 (9 mod 11) = 45

 

A

Bytes

4. 11 + 5. 45

(Mod 55)

 

Bytes

44 + 225

(Mod 55)

 

Bytes

49

(Mod 55 ).

 

Therefore, all the solutions that make the equation come true at the same time are integers in the form of 49 + 55 K (K is an arbitrary integer.

 

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.