Exercise · Volume 1 · 1.2.4-16
Exercise 1.2.4-16
proved in Lean solution written
| Rating | M10 |
|---|---|
| Markers | M (mathematical) |
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.4 of Volume 1. Companion chapter: Integer functions and elementary number theory |
The task
Show that for the remainder is the only number in for which is an integer.
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
Let . Then . Find .
Solution
Show the solution
Put , an integer, so that . Since and , the fraction satisfies . So , and by Exercise 1.2.4-3(e), . Then .
Check
Take and . The candidate has , an integer, and . The definition gives . The candidate has an integer quotient too, but , so it is not the remainder.
Remarks
The exercise gives the standard way to compute a remainder in a proof: guess a number in the range and show that the difference is a multiple of the modulus. The same proof works for with the range . Exercises 1.2.4-14 and 1.2.4-17 use it.
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.
- Problem:
TAOCP.S1_2_4.Ex16.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_4.Ex16.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.