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-11

Exercise 1.2.4-11

proved in Lean solution written

Rating00
KindK3, find a value: compute a number, a set or a closed form from the written solution
SectionSection 1.2.4 of Volume 1. Companion chapter: Integer functions and elementary number theory

The task

State what x≡y(mod0)x \equiv y \pmod 0 means under the conventions of the section.

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

Congruence is equality of remainders. What is x mod 0x \bmod 0?

Solution

Show the solution

By definition, x≡y(modz)x \equiv y \pmod z means x mod z=y mod zx \bmod z = y \bmod z. For z=0z = 0 the rule of a zero modulus gives x mod 0=xx \bmod 0 = x and y mod 0=yy \bmod 0 = y. So the statement means x=yx = y.

Check

5≡5(mod0)5 \equiv 5 \pmod 0 is true, and 5≡6(mod0)5 \equiv 6 \pmod 0 is false. For integers this agrees with the rule that x≡y(modz)x \equiv y \pmod z means that zz divides x−yx - y: the only multiple of 00 is 00.

Remarks

The convention keeps the laws of congruence true for the modulus 00. Law C with n≠0n \ne 0 becomes the trivial claim a=ba = b if and only if na=nbna = nb.

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.