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

Exercise 1.2.4-12

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

Find all integers that are relatively prime to 11.

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

Two integers are relatively prime when their greatest common divisor is 11.

Solution

Show the solution

The positive divisors of 11 are only 11. So gcd⁡(n,1)=1\gcd(n, 1) = 1 for every integer nn, whatever its sign or its size. Every integer is relatively prime to 11.

Check

gcd⁡(0,1)=1\gcd(0, 1) = 1, gcd⁡(7,1)=1\gcd(7, 1) = 1 and gcd⁡(−12,1)=1\gcd(-12, 1) = 1.

Remarks

The next exercise treats the other special modulus, 00. Every congruence modulo 11 holds, since x mod 1=0x \bmod 1 = 0 for every integer xx.

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.