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

Exercise 1.2.4-13

proved in Lean solution written

RatingM00
MarkersM (mathematical)
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

Find the integers that are relatively prime to 00, given that gcd⁡(0,n)=∣n∣\gcd(0, n) = |n|.

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

Write the condition gcd⁡(n,0)=1\gcd(n, 0) = 1 with the convention and solve it for nn.

Solution

Show the solution

By the convention, gcd⁡(n,0)=∣n∣\gcd(n, 0) = |n|. This equals 11 if and only if ∣n∣=1|n| = 1, that is n=1n = 1 or n=−1n = -1. Only 11 and −1-1 are relatively prime to 00.

Check

gcd⁡(5,0)=5≠1\gcd(5, 0) = 5 \ne 1, gcd⁡(1,0)=1\gcd(1, 0) = 1, gcd⁡(−1,0)=1\gcd(-1, 0) = 1. This fits the fact that every integer divides 00: a common divisor of nn and 00 is any divisor of nn, and the greatest is ∣n∣|n|.

Remarks

With this convention, Law B for m=0m = 0 says: if a⊥0a \perp 0, then a=±1a = \pm 1 and the congruence modulo 00 is an equality. This is true, which supports the convention. See Exercise 1.2.4-11 and Exercise 1.2.4-12.

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.