taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 1.2.4-23

Exercise 1.2.4-23

proved in Lean solution written

RatingM10
MarkersM (mathematical)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.4 of Volume 1. Companion chapter: Integer functions and elementary number theory

The task

Give integers rr, ss, aa, bb for which a≡ba \equiv b modulo rr and modulo ss but not modulo rsrs, so that Law D needs r⊥sr \perp s.

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

Take r=sr = s. Then the product rsrs is larger than the common modulus.

Solution

Show the solution

Take r=s=2r = s = 2, a=2a = 2 and b=0b = 0. Then a−b=2a - b = 2 is a multiple of rr and of ss. But rs=4rs = 4 does not divide 22. So a≡b(mod2)a \equiv b \pmod 2 holds twice and a≡b(mod4)a \equiv b \pmod 4 fails. Here gcd⁡(2,2)=2\gcd(2, 2) = 2.

Check

A pair with different moduli: r=4r = 4, s=6s = 6, a=12a = 12, b=0b = 0. Both 44 and 66 divide 1212, but 2424 does not. In this case the true modulus is lcm⁡(4,6)=12\operatorname{lcm}(4, 6) = 12: the congruence holds modulo 1212.

Remarks

For general rr and ss the congruence modulo rr and ss is equivalent to the congruence modulo lcm⁡(r,s)=rs/gcd⁡(r,s)\operatorname{lcm}(r, s) = rs/\gcd(r, s). Exercise 1.2.4-18 is the special case gcd⁡(r,s)=1\gcd(r, s) = 1.

This solution is checked, and a person has not reviewed it yet. The source.

In Lean

proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.