Exercise · Volume 1 · 1.2.4-26
Exercise 1.2.4-26
proved in Lean solution written
| Rating | M15 |
|---|---|
| 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
For an odd prime and any integer , show that leaves the remainder , or modulo .
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
Square and use the previous exercise. Then factor .
Hint 2
A prime that divides a product divides one of the factors (Exercise 1.2.4-21).
Solution
Show the solution
Since is odd, is an integer, and .
Case . Then since has the factor at least once. So .
Case . By Exercise 1.2.4-25, . So divides . By Euclid's lemma (Exercise 1.2.4-21), or . In the first case and . In the second case , and , so .
Check
The values of for are, for : . For the set of values is , and for it is .
Remarks
The value is when is a square modulo and when it is not. This is Euler's criterion, the base of the Legendre symbol. The case is excluded: is not an integer.
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.Ex26.statementaxioms: propext - Solution:
TAOCP.S1_2_4.Ex26.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.