number theory - ``the queen of mathematics'' -- …pengshi/math149/number-theory.pdfnumber...
TRANSCRIPT
![Page 1: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/1.jpg)
Number Theory“The queen of mathematics” – Gauss
Peng Shi
Department of MathematicsDuke University
November 18, 2009
![Page 2: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/2.jpg)
Number Theory has a LOT of Theory
When I think of number theory, the following machineries come to mind
Congruences and divisibility
Euler’s Theorem
Chinese remainder
Order of an element
Primitive roots
Quadratic Residues
Algebraic Field Extensions
Hensel’s Lemma
Dirichlet Series
Pell’s Equations
Farey Sequences
Continued Fractions
Arithmetic Functions
Rings and Modules
We will only cover some of the basic techniques. For information onsome of the other techniques, see Naoki Sato’s notes, available atwww.artofproblemsolving.com/Resources/Papers/SatoNT.pdf.(Many of the examples are plagiarized from this source.)
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 2/16
![Page 3: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/3.jpg)
Number Theory has a LOT of Theory
When I think of number theory, the following machineries come to mind
Congruences and divisibility
Euler’s Theorem
Chinese remainder
Order of an element
Primitive roots
Quadratic Residues
Algebraic Field Extensions
Hensel’s Lemma
Dirichlet Series
Pell’s Equations
Farey Sequences
Continued Fractions
Arithmetic Functions
Rings and Modules
We will only cover some of the basic techniques. For information onsome of the other techniques, see Naoki Sato’s notes, available atwww.artofproblemsolving.com/Resources/Papers/SatoNT.pdf.(Many of the examples are plagiarized from this source.)
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 2/16
![Page 4: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/4.jpg)
Number Theory has a LOT of Theory
When I think of number theory, the following machineries come to mind
Congruences and divisibility
Euler’s Theorem
Chinese remainder
Order of an element
Primitive roots
Quadratic Residues
Algebraic Field Extensions
Hensel’s Lemma
Dirichlet Series
Pell’s Equations
Farey Sequences
Continued Fractions
Arithmetic Functions
Rings and Modules
We will only cover some of the basic techniques. For information onsome of the other techniques, see Naoki Sato’s notes, available atwww.artofproblemsolving.com/Resources/Papers/SatoNT.pdf.(Many of the examples are plagiarized from this source.)
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 2/16
![Page 5: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/5.jpg)
Congruences and divisibility
We say that a ≡ b (mod n) if n|a− b.Useful properties:
If a ≡ b and c ≡ d (mod n), then a− c ≡ b − d (mod n) andac ≡ bd (mod n).
If n|a and n|b, then n|ua + vb.
∀n ∈ Z, n2 ≡ 0, 1 (mod 4).
∀n ∈ Z, n2 ≡ 0, 1, 4 (mod 4). (0, 1, 4 are “quadratic residues” mod8.)
If a and b are co-prime, then ∃u such that au ≡ 1 (mod n). The“multiplicative inverse” is unique up to equivalence class.Equivalently, ∃u, v ∈ Z such that, au + bv = 1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 3/16
![Page 6: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/6.jpg)
Congruences and divisibility
We say that a ≡ b (mod n) if n|a− b.Useful properties:
If a ≡ b and c ≡ d (mod n), then a− c ≡ b − d (mod n) andac ≡ bd (mod n).
If n|a and n|b, then n|ua + vb.
∀n ∈ Z, n2 ≡ 0, 1 (mod 4).
∀n ∈ Z, n2 ≡ 0, 1, 4 (mod 4). (0, 1, 4 are “quadratic residues” mod8.)
If a and b are co-prime, then ∃u such that au ≡ 1 (mod n). The“multiplicative inverse” is unique up to equivalence class.Equivalently, ∃u, v ∈ Z such that, au + bv = 1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 3/16
![Page 7: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/7.jpg)
Congruences and divisibility
We say that a ≡ b (mod n) if n|a− b.Useful properties:
If a ≡ b and c ≡ d (mod n), then a− c ≡ b − d (mod n) andac ≡ bd (mod n).
If n|a and n|b, then n|ua + vb.
∀n ∈ Z, n2 ≡ 0, 1 (mod 4).
∀n ∈ Z, n2 ≡ 0, 1, 4 (mod 4). (0, 1, 4 are “quadratic residues” mod8.)
If a and b are co-prime, then ∃u such that au ≡ 1 (mod n). The“multiplicative inverse” is unique up to equivalence class.Equivalently, ∃u, v ∈ Z such that, au + bv = 1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 3/16
![Page 8: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/8.jpg)
Congruences and divisibility
We say that a ≡ b (mod n) if n|a− b.Useful properties:
If a ≡ b and c ≡ d (mod n), then a− c ≡ b − d (mod n) andac ≡ bd (mod n).
If n|a and n|b, then n|ua + vb.
∀n ∈ Z, n2 ≡ 0, 1 (mod 4).
∀n ∈ Z, n2 ≡ 0, 1, 4 (mod 4). (0, 1, 4 are “quadratic residues” mod8.)
If a and b are co-prime, then ∃u such that au ≡ 1 (mod n). The“multiplicative inverse” is unique up to equivalence class.Equivalently, ∃u, v ∈ Z such that, au + bv = 1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 3/16
![Page 9: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/9.jpg)
Congruences and divisibility
We say that a ≡ b (mod n) if n|a− b.Useful properties:
If a ≡ b and c ≡ d (mod n), then a− c ≡ b − d (mod n) andac ≡ bd (mod n).
If n|a and n|b, then n|ua + vb.
∀n ∈ Z, n2 ≡ 0, 1 (mod 4).
∀n ∈ Z, n2 ≡ 0, 1, 4 (mod 4). (0, 1, 4 are “quadratic residues” mod8.)
If a and b are co-prime, then ∃u such that au ≡ 1 (mod n). The“multiplicative inverse” is unique up to equivalence class.Equivalently, ∃u, v ∈ Z such that, au + bv = 1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 3/16
![Page 10: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/10.jpg)
Euler’s Theorem
Definitionφ(n) denotes the number of positive integers less than n and relativelyprime to n. This is the Euler’s Totient function.
TheoremIf n has prime factors p1, · · · pk , then
φ(n) = nk∏
i=1
(1− 1
pi)
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 4/16
![Page 11: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/11.jpg)
Euler’s Theorem
Definitionφ(n) denotes the number of positive integers less than n and relativelyprime to n. This is the Euler’s Totient function.
TheoremIf n has prime factors p1, · · · pk , then
φ(n) = nk∏
i=1
(1− 1
pi)
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 4/16
![Page 12: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/12.jpg)
Euler’s Theorem
Theorem (Euler’s Theorem)If a is relatively prime to n, then aφ(n) ≡ 1 (mod m).In particular, if p - a, then ap−1 ≡ 1 (mod p) (Fermat’s little theorem).
Proof.Let a1, a2, · · · , aφ(n) be the positive integers less than n and relativelyprime to n. Note that aa1, aa2, · · · , aaφ(n) is a permultation of thesenumbers. (This is because aai ≡ aaj implies ai ≡ aj , so this is aninjection of a finite set to itself.)Thus,
a1a2 · · · aφ(n) ≡ (aa1)(aa2) · · · (aaφ(n))≡ aφ(n)a1a2 · · · aφ(n)
=⇒ 1 ≡ aφ(n) (mod n)
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 5/16
![Page 13: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/13.jpg)
Euler’s Theorem
Theorem (Euler’s Theorem)If a is relatively prime to n, then aφ(n) ≡ 1 (mod m).In particular, if p - a, then ap−1 ≡ 1 (mod p) (Fermat’s little theorem).
Proof.Let a1, a2, · · · , aφ(n) be the positive integers less than n and relativelyprime to n. Note that aa1, aa2, · · · , aaφ(n) is a permultation of thesenumbers.
(This is because aai ≡ aaj implies ai ≡ aj , so this is aninjection of a finite set to itself.)Thus,
a1a2 · · · aφ(n) ≡ (aa1)(aa2) · · · (aaφ(n))≡ aφ(n)a1a2 · · · aφ(n)
=⇒ 1 ≡ aφ(n) (mod n)
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 5/16
![Page 14: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/14.jpg)
Euler’s Theorem
Theorem (Euler’s Theorem)If a is relatively prime to n, then aφ(n) ≡ 1 (mod m).In particular, if p - a, then ap−1 ≡ 1 (mod p) (Fermat’s little theorem).
Proof.Let a1, a2, · · · , aφ(n) be the positive integers less than n and relativelyprime to n. Note that aa1, aa2, · · · , aaφ(n) is a permultation of thesenumbers. (This is because aai ≡ aaj implies ai ≡ aj , so this is aninjection of a finite set to itself.)
Thus,a1a2 · · · aφ(n) ≡ (aa1)(aa2) · · · (aaφ(n))
≡ aφ(n)a1a2 · · · aφ(n)
=⇒ 1 ≡ aφ(n) (mod n)
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 5/16
![Page 15: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/15.jpg)
Euler’s Theorem
Theorem (Euler’s Theorem)If a is relatively prime to n, then aφ(n) ≡ 1 (mod m).In particular, if p - a, then ap−1 ≡ 1 (mod p) (Fermat’s little theorem).
Proof.Let a1, a2, · · · , aφ(n) be the positive integers less than n and relativelyprime to n. Note that aa1, aa2, · · · , aaφ(n) is a permultation of thesenumbers. (This is because aai ≡ aaj implies ai ≡ aj , so this is aninjection of a finite set to itself.)Thus,
a1a2 · · · aφ(n) ≡ (aa1)(aa2) · · · (aaφ(n))≡ aφ(n)a1a2 · · · aφ(n)
=⇒ 1 ≡ aφ(n) (mod n)
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 5/16
![Page 16: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/16.jpg)
Chinese Remainder Theorem
Theorem (Chinese Remainder)If a1, a2, · · · , ak are integers and m1,m2, · · · ,mk are pairwise relativelyprime integers, then the system of congruences
x ≡ a1 (mod m1)...
x ≡ ak (mod mk)
has a unique solution mod m = m1m2 · · ·mk .
Proof.Since m
miis relatively prime to mi , ∃ti s.t. ti · m
mi≡ 1 (mod mi ). Let
si = ti · mmi
.∀j 6= i , si ≡ 0 (mod mj), and si ≡ 1 (mod mi ). Hence,x = a1s1 + · · ·+ aksk is a solution.To see uniqueness, if x ′ is another solution, then x − x ′ ≡ 0 (mod mi ) forall i , so x − x ′ ≡ 0 (mod m).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 6/16
![Page 17: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/17.jpg)
Chinese Remainder Theorem
Theorem (Chinese Remainder)If a1, a2, · · · , ak are integers and m1,m2, · · · ,mk are pairwise relativelyprime integers, then the system of congruences
x ≡ a1 (mod m1)...
x ≡ ak (mod mk)
has a unique solution mod m = m1m2 · · ·mk .
Proof.Since m
miis relatively prime to mi , ∃ti s.t. ti · m
mi≡ 1 (mod mi ). Let
si = ti · mmi
.
∀j 6= i , si ≡ 0 (mod mj), and si ≡ 1 (mod mi ). Hence,x = a1s1 + · · ·+ aksk is a solution.To see uniqueness, if x ′ is another solution, then x − x ′ ≡ 0 (mod mi ) forall i , so x − x ′ ≡ 0 (mod m).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 6/16
![Page 18: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/18.jpg)
Chinese Remainder Theorem
Theorem (Chinese Remainder)If a1, a2, · · · , ak are integers and m1,m2, · · · ,mk are pairwise relativelyprime integers, then the system of congruences
x ≡ a1 (mod m1)...
x ≡ ak (mod mk)
has a unique solution mod m = m1m2 · · ·mk .
Proof.Since m
miis relatively prime to mi , ∃ti s.t. ti · m
mi≡ 1 (mod mi ). Let
si = ti · mmi
.∀j 6= i , si ≡ 0 (mod mj), and si ≡ 1 (mod mi ). Hence,x = a1s1 + · · ·+ aksk is a solution.
To see uniqueness, if x ′ is another solution, then x − x ′ ≡ 0 (mod mi ) forall i , so x − x ′ ≡ 0 (mod m).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 6/16
![Page 19: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/19.jpg)
Chinese Remainder Theorem
Theorem (Chinese Remainder)If a1, a2, · · · , ak are integers and m1,m2, · · · ,mk are pairwise relativelyprime integers, then the system of congruences
x ≡ a1 (mod m1)...
x ≡ ak (mod mk)
has a unique solution mod m = m1m2 · · ·mk .
Proof.Since m
miis relatively prime to mi , ∃ti s.t. ti · m
mi≡ 1 (mod mi ). Let
si = ti · mmi
.∀j 6= i , si ≡ 0 (mod mj), and si ≡ 1 (mod mi ). Hence,x = a1s1 + · · ·+ aksk is a solution.To see uniqueness, if x ′ is another solution, then x − x ′ ≡ 0 (mod mi ) forall i , so x − x ′ ≡ 0 (mod m).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 6/16
![Page 20: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/20.jpg)
Chinese Remainder Theorem
Example (From Sunzi Suanjing)There are certain things whose number is unknown. Repeatedly dividedby 3, the remainder is 2; by 5 the remainder is 3; and by 7 the remainderis 2. What will be the (smallest such) number?
Solution.−35× 2 + 21× 3 + 15× 2 = 21.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 7/16
![Page 21: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/21.jpg)
Chinese Remainder Theorem
Example (From Sunzi Suanjing)There are certain things whose number is unknown. Repeatedly dividedby 3, the remainder is 2; by 5 the remainder is 3; and by 7 the remainderis 2. What will be the (smallest such) number?
Solution.−35× 2 + 21× 3 + 15× 2 = 21.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 7/16
![Page 22: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/22.jpg)
Chinese Remainder Theorem
Example (From Sunzi Suanjing)There are certain things whose number is unknown. Repeatedly dividedby 3, the remainder is 2; by 5 the remainder is 3; and by 7 the remainderis 2. What will be the (smallest such) number?
Solution.−35× 2 + 21× 3 + 15× 2 = 21.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 7/16
![Page 23: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/23.jpg)
Fun with Divisibility
ExampleFind all positive integers d such that d divides both n2 + 1 and(n + 1)2 + 1 for some integer n.
Proof.Since (n + 1)2 + 1 = n2 + 2n + 2, d |[n2 + 2n + 2]− [n2 + 1] = 2n + 1So d |4n2 + 4n + 1So d |4(n2 + 2n + 2)− (4n2 + 4n + 1) = 4n + 7So d |(4n + 7)− 2(2n + 1) = 5. So d |5. So d ∈ {1, 5}.Setting n = 2 shows that both values can be achieved.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 8/16
![Page 24: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/24.jpg)
Fun with Divisibility
ExampleFind all positive integers d such that d divides both n2 + 1 and(n + 1)2 + 1 for some integer n.
Proof.Since (n + 1)2 + 1 = n2 + 2n + 2, d |[n2 + 2n + 2]− [n2 + 1] = 2n + 1
So d |4n2 + 4n + 1So d |4(n2 + 2n + 2)− (4n2 + 4n + 1) = 4n + 7So d |(4n + 7)− 2(2n + 1) = 5. So d |5. So d ∈ {1, 5}.Setting n = 2 shows that both values can be achieved.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 8/16
![Page 25: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/25.jpg)
Fun with Divisibility
ExampleFind all positive integers d such that d divides both n2 + 1 and(n + 1)2 + 1 for some integer n.
Proof.Since (n + 1)2 + 1 = n2 + 2n + 2, d |[n2 + 2n + 2]− [n2 + 1] = 2n + 1So d |4n2 + 4n + 1
So d |4(n2 + 2n + 2)− (4n2 + 4n + 1) = 4n + 7So d |(4n + 7)− 2(2n + 1) = 5. So d |5. So d ∈ {1, 5}.Setting n = 2 shows that both values can be achieved.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 8/16
![Page 26: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/26.jpg)
Fun with Divisibility
ExampleFind all positive integers d such that d divides both n2 + 1 and(n + 1)2 + 1 for some integer n.
Proof.Since (n + 1)2 + 1 = n2 + 2n + 2, d |[n2 + 2n + 2]− [n2 + 1] = 2n + 1So d |4n2 + 4n + 1So d |4(n2 + 2n + 2)− (4n2 + 4n + 1) = 4n + 7
So d |(4n + 7)− 2(2n + 1) = 5. So d |5. So d ∈ {1, 5}.Setting n = 2 shows that both values can be achieved.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 8/16
![Page 27: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/27.jpg)
Fun with Divisibility
ExampleFind all positive integers d such that d divides both n2 + 1 and(n + 1)2 + 1 for some integer n.
Proof.Since (n + 1)2 + 1 = n2 + 2n + 2, d |[n2 + 2n + 2]− [n2 + 1] = 2n + 1So d |4n2 + 4n + 1So d |4(n2 + 2n + 2)− (4n2 + 4n + 1) = 4n + 7So d |(4n + 7)− 2(2n + 1) = 5. So d |5. So d ∈ {1, 5}.
Setting n = 2 shows that both values can be achieved.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 8/16
![Page 28: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/28.jpg)
Fun with Divisibility
ExampleFind all positive integers d such that d divides both n2 + 1 and(n + 1)2 + 1 for some integer n.
Proof.Since (n + 1)2 + 1 = n2 + 2n + 2, d |[n2 + 2n + 2]− [n2 + 1] = 2n + 1So d |4n2 + 4n + 1So d |4(n2 + 2n + 2)− (4n2 + 4n + 1) = 4n + 7So d |(4n + 7)− 2(2n + 1) = 5. So d |5. So d ∈ {1, 5}.Setting n = 2 shows that both values can be achieved.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 8/16
![Page 29: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/29.jpg)
“Big” Results using Little Theorem
ProblemIf p is a prime and n is an integer such that p|(4n2 + 1) thenp ≡ 1 (mod 4).
Solution.Clearly, p cannot be 2, so we need to show that p 6≡ 3 (mod 4). Supposeon the contrary that p = 4k + 3 for some k. Let y = 2n, note that y isrelatively prime to p.By Fermat’s Little Theorem,
yp−1 ≡ 1 (mod p)
However, y2 ≡ −1 (mod p), so
yp−1 ≡ (y2)2k+1 ≡ −1 (mod p)
Contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 9/16
![Page 30: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/30.jpg)
“Big” Results using Little Theorem
ProblemIf p is a prime and n is an integer such that p|(4n2 + 1) thenp ≡ 1 (mod 4).
Solution.Clearly, p cannot be 2, so we need to show that p 6≡ 3 (mod 4). Supposeon the contrary that p = 4k + 3 for some k . Let y = 2n, note that y isrelatively prime to p.By Fermat’s Little Theorem,
yp−1 ≡ 1 (mod p)
However, y2 ≡ −1 (mod p), so
yp−1 ≡ (y2)2k+1 ≡ −1 (mod p)
Contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 9/16
![Page 31: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/31.jpg)
“Big” Results using Little Theorem
ProblemIf p is a prime and n is an integer such that p|(4n2 + 1) thenp ≡ 1 (mod 4).
Solution.Clearly, p cannot be 2, so we need to show that p 6≡ 3 (mod 4). Supposeon the contrary that p = 4k + 3 for some k . Let y = 2n, note that y isrelatively prime to p.By Fermat’s Little Theorem,
yp−1 ≡ 1 (mod p)
However, y2 ≡ −1 (mod p), so
yp−1 ≡ (y2)2k+1 ≡ −1 (mod p)
Contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 9/16
![Page 32: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/32.jpg)
“Big” Results using Little Theorem
ProblemIf p is a prime and n is an integer such that p|(4n2 + 1) thenp ≡ 1 (mod 4).
Solution.Clearly, p cannot be 2, so we need to show that p 6≡ 3 (mod 4). Supposeon the contrary that p = 4k + 3 for some k . Let y = 2n, note that y isrelatively prime to p.By Fermat’s Little Theorem,
yp−1 ≡ 1 (mod p)
However, y2 ≡ −1 (mod p), so
yp−1 ≡ (y2)2k+1 ≡ −1 (mod p)
Contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 9/16
![Page 33: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/33.jpg)
Order
If a is relatively prime to n, then let d be the smallest positive integersuch that ad ≡ 1 (mod n). We call d the order of a modulo m, denotedby ordn(a).
TheoremIf a is relatively prime to n and am ≡ 1 (mod n), then ord(a)|m.
ExampleShow that the order of 2 modulo 101 is 100.
Solution.ord(2)|φ(101) = 100. If ord(2) < 100, then either ord(2)|50 orord(2)|20.But it is straightforward to check that 250 ≡ −1 and220 ≡ −6 (mod 101).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 10/16
![Page 34: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/34.jpg)
Order
If a is relatively prime to n, then let d be the smallest positive integersuch that ad ≡ 1 (mod n). We call d the order of a modulo m, denotedby ordn(a).
TheoremIf a is relatively prime to n and am ≡ 1 (mod n), then ord(a)|m.
ExampleShow that the order of 2 modulo 101 is 100.
Solution.ord(2)|φ(101) = 100. If ord(2) < 100, then either ord(2)|50 orord(2)|20.But it is straightforward to check that 250 ≡ −1 and220 ≡ −6 (mod 101).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 10/16
![Page 35: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/35.jpg)
Order
If a is relatively prime to n, then let d be the smallest positive integersuch that ad ≡ 1 (mod n). We call d the order of a modulo m, denotedby ordn(a).
TheoremIf a is relatively prime to n and am ≡ 1 (mod n), then ord(a)|m.
ExampleShow that the order of 2 modulo 101 is 100.
Solution.ord(2)|φ(101) = 100. If ord(2) < 100, then either ord(2)|50 orord(2)|20.But it is straightforward to check that 250 ≡ −1 and220 ≡ −6 (mod 101).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 10/16
![Page 36: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/36.jpg)
Order
If a is relatively prime to n, then let d be the smallest positive integersuch that ad ≡ 1 (mod n). We call d the order of a modulo m, denotedby ordn(a).
TheoremIf a is relatively prime to n and am ≡ 1 (mod n), then ord(a)|m.
ExampleShow that the order of 2 modulo 101 is 100.
Solution.ord(2)|φ(101) = 100. If ord(2) < 100, then either ord(2)|50 orord(2)|20.
But it is straightforward to check that 250 ≡ −1 and220 ≡ −6 (mod 101).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 10/16
![Page 37: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/37.jpg)
Order
If a is relatively prime to n, then let d be the smallest positive integersuch that ad ≡ 1 (mod n). We call d the order of a modulo m, denotedby ordn(a).
TheoremIf a is relatively prime to n and am ≡ 1 (mod n), then ord(a)|m.
ExampleShow that the order of 2 modulo 101 is 100.
Solution.ord(2)|φ(101) = 100. If ord(2) < 100, then either ord(2)|50 orord(2)|20.But it is straightforward to check that 250 ≡ −1 and220 ≡ −6 (mod 101).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 10/16
![Page 38: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/38.jpg)
Primitive Root
We know that modulo n, ord(g)|φ(n). We call g a primitive root iford(g) = φ(n).
TheoremPositive integer n has a primitive root iff n is one of 2, 4, pk , 2pk , where pis an odd prime.
ProblemShow that if p is an odd prime, then the congruence x4 ≡ −1 (mod p)has a solution iff p ≡ 1 (mod 8).
Solution.Let x = gd where g is a primitive root mod p. Then we have4d 6≡ 0 (mod p − 1) (since g4d 6≡ 1 (mod p)).But 8d ≡ 0 (mod p − 1) (since g8d ≡ 1 (mod p)).Thus 8|p − 1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 11/16
![Page 39: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/39.jpg)
Primitive Root
We know that modulo n, ord(g)|φ(n). We call g a primitive root iford(g) = φ(n).
TheoremPositive integer n has a primitive root iff n is one of 2, 4, pk , 2pk , where pis an odd prime.
ProblemShow that if p is an odd prime, then the congruence x4 ≡ −1 (mod p)has a solution iff p ≡ 1 (mod 8).
Solution.Let x = gd where g is a primitive root mod p. Then we have4d 6≡ 0 (mod p − 1) (since g4d 6≡ 1 (mod p)).But 8d ≡ 0 (mod p − 1) (since g8d ≡ 1 (mod p)).Thus 8|p − 1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 11/16
![Page 40: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/40.jpg)
Primitive Root
We know that modulo n, ord(g)|φ(n). We call g a primitive root iford(g) = φ(n).
TheoremPositive integer n has a primitive root iff n is one of 2, 4, pk , 2pk , where pis an odd prime.
ProblemShow that if p is an odd prime, then the congruence x4 ≡ −1 (mod p)has a solution iff p ≡ 1 (mod 8).
Solution.Let x = gd where g is a primitive root mod p. Then we have4d 6≡ 0 (mod p − 1) (since g4d 6≡ 1 (mod p)).
But 8d ≡ 0 (mod p − 1) (since g8d ≡ 1 (mod p)).Thus 8|p − 1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 11/16
![Page 41: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/41.jpg)
Primitive Root
We know that modulo n, ord(g)|φ(n). We call g a primitive root iford(g) = φ(n).
TheoremPositive integer n has a primitive root iff n is one of 2, 4, pk , 2pk , where pis an odd prime.
ProblemShow that if p is an odd prime, then the congruence x4 ≡ −1 (mod p)has a solution iff p ≡ 1 (mod 8).
Solution.Let x = gd where g is a primitive root mod p. Then we have4d 6≡ 0 (mod p − 1) (since g4d 6≡ 1 (mod p)).But 8d ≡ 0 (mod p − 1) (since g8d ≡ 1 (mod p)).
Thus 8|p − 1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 11/16
![Page 42: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/42.jpg)
Primitive Root
We know that modulo n, ord(g)|φ(n). We call g a primitive root iford(g) = φ(n).
TheoremPositive integer n has a primitive root iff n is one of 2, 4, pk , 2pk , where pis an odd prime.
ProblemShow that if p is an odd prime, then the congruence x4 ≡ −1 (mod p)has a solution iff p ≡ 1 (mod 8).
Solution.Let x = gd where g is a primitive root mod p. Then we have4d 6≡ 0 (mod p − 1) (since g4d 6≡ 1 (mod p)).But 8d ≡ 0 (mod p − 1) (since g8d ≡ 1 (mod p)).Thus 8|p − 1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 11/16
![Page 43: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/43.jpg)
Another Example
ProblemShow that 2 is a primitive root modulo 3n for all n ≥ 1.
Solution.Note that φ(3k) = 2 · 3k−1. It suffices to prove by induction that ∀k ≥ 1,
22·3k−1
≡ 1 + 3k (mod 3n+1)
Induction step:
22·3k−1
= 1 + 3k + 3k+1m
⇒ 22·3k
= (1 + 3k + 3k+1m)3
= 1 + 3k+1 + 3k+2M
The result follows.
In particular, this implies that if 2n ≡ −1 (mod 3k), then 3k−1|n.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 12/16
![Page 44: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/44.jpg)
Another Example
ProblemShow that 2 is a primitive root modulo 3n for all n ≥ 1.
Solution.Note that φ(3k) = 2 · 3k−1. It suffices to prove by induction that ∀k ≥ 1,
22·3k−1
≡ 1 + 3k (mod 3n+1)
Induction step:
22·3k−1
= 1 + 3k + 3k+1m
⇒ 22·3k
= (1 + 3k + 3k+1m)3
= 1 + 3k+1 + 3k+2M
The result follows.
In particular, this implies that if 2n ≡ −1 (mod 3k), then 3k−1|n.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 12/16
![Page 45: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/45.jpg)
Another Example
ProblemShow that 2 is a primitive root modulo 3n for all n ≥ 1.
Solution.Note that φ(3k) = 2 · 3k−1. It suffices to prove by induction that ∀k ≥ 1,
22·3k−1
≡ 1 + 3k (mod 3n+1)
Induction step:
22·3k−1
= 1 + 3k + 3k+1m
⇒ 22·3k
= (1 + 3k + 3k+1m)3
= 1 + 3k+1 + 3k+2M
The result follows.
In particular, this implies that if 2n ≡ −1 (mod 3k), then 3k−1|n.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 12/16
![Page 46: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/46.jpg)
Another Example
ProblemShow that 2 is a primitive root modulo 3n for all n ≥ 1.
Solution.Note that φ(3k) = 2 · 3k−1. It suffices to prove by induction that ∀k ≥ 1,
22·3k−1
≡ 1 + 3k (mod 3n+1)
Induction step:
22·3k−1
= 1 + 3k + 3k+1m
⇒ 22·3k
= (1 + 3k + 3k+1m)3
= 1 + 3k+1 + 3k+2M
The result follows.
In particular, this implies that if 2n ≡ −1 (mod 3k), then 3k−1|n.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 12/16
![Page 47: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/47.jpg)
One of my Favorite Solutions
Problem(IMO 1990) Find all positive integers n > 1 such that 2n+1
n2 is an integer.
Solution.Clearly, n must be odd. Let 3k be the highest power of 3 deviding n.Then 32k |n2|2n + 1, (2n ≡ −1 (mod 32k)). By previous slide, this implies32k−1|n. So 2k − 1 ≤ k, k ≤ 1. This shows that n has at most onefactor of 3. Note that n = 3 is a solution. We show that this is the onlysolution.Suppose that n has a prime factor greater than 3; let p be the least suchprime. Then 2n ≡ −1 (mod p). Let d be the order of 2 modulo p. Since22n ≡ 1, d |2n. If d is odd, then d |n, which implies 2n ≡ 1, contradiction.So d = 2d1. 2d1|2n, so d1|n.However, 2d1 = d |(p− 1), so d1| p−1
2 . This implies d1 < p. By minimalityd1 ∈ {1, 3}. If d1 = 1, then d = 2, and 22 ≡ 1 (mod p), contradiction. Ifd1 = 3, then d = 6, and 26 ≡ 1 (mod p), so p|63, which implies p = 7.But the order of 2 modulo 7 is 3, which is odd, contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 13/16
![Page 48: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/48.jpg)
One of my Favorite Solutions
Problem(IMO 1990) Find all positive integers n > 1 such that 2n+1
n2 is an integer.
Solution.Clearly, n must be odd. Let 3k be the highest power of 3 deviding n.Then 32k |n2|2n + 1, (2n ≡ −1 (mod 32k)).
By previous slide, this implies32k−1|n. So 2k − 1 ≤ k, k ≤ 1. This shows that n has at most onefactor of 3. Note that n = 3 is a solution. We show that this is the onlysolution.Suppose that n has a prime factor greater than 3; let p be the least suchprime. Then 2n ≡ −1 (mod p). Let d be the order of 2 modulo p. Since22n ≡ 1, d |2n. If d is odd, then d |n, which implies 2n ≡ 1, contradiction.So d = 2d1. 2d1|2n, so d1|n.However, 2d1 = d |(p− 1), so d1| p−1
2 . This implies d1 < p. By minimalityd1 ∈ {1, 3}. If d1 = 1, then d = 2, and 22 ≡ 1 (mod p), contradiction. Ifd1 = 3, then d = 6, and 26 ≡ 1 (mod p), so p|63, which implies p = 7.But the order of 2 modulo 7 is 3, which is odd, contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 13/16
![Page 49: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/49.jpg)
One of my Favorite Solutions
Problem(IMO 1990) Find all positive integers n > 1 such that 2n+1
n2 is an integer.
Solution.Clearly, n must be odd. Let 3k be the highest power of 3 deviding n.Then 32k |n2|2n + 1, (2n ≡ −1 (mod 32k)). By previous slide, this implies32k−1|n.
So 2k − 1 ≤ k, k ≤ 1. This shows that n has at most onefactor of 3. Note that n = 3 is a solution. We show that this is the onlysolution.Suppose that n has a prime factor greater than 3; let p be the least suchprime. Then 2n ≡ −1 (mod p). Let d be the order of 2 modulo p. Since22n ≡ 1, d |2n. If d is odd, then d |n, which implies 2n ≡ 1, contradiction.So d = 2d1. 2d1|2n, so d1|n.However, 2d1 = d |(p− 1), so d1| p−1
2 . This implies d1 < p. By minimalityd1 ∈ {1, 3}. If d1 = 1, then d = 2, and 22 ≡ 1 (mod p), contradiction. Ifd1 = 3, then d = 6, and 26 ≡ 1 (mod p), so p|63, which implies p = 7.But the order of 2 modulo 7 is 3, which is odd, contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 13/16
![Page 50: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/50.jpg)
One of my Favorite Solutions
Problem(IMO 1990) Find all positive integers n > 1 such that 2n+1
n2 is an integer.
Solution.Clearly, n must be odd. Let 3k be the highest power of 3 deviding n.Then 32k |n2|2n + 1, (2n ≡ −1 (mod 32k)). By previous slide, this implies32k−1|n. So 2k − 1 ≤ k , k ≤ 1. This shows that n has at most onefactor of 3. Note that n = 3 is a solution. We show that this is the onlysolution.
Suppose that n has a prime factor greater than 3; let p be the least suchprime. Then 2n ≡ −1 (mod p). Let d be the order of 2 modulo p. Since22n ≡ 1, d |2n. If d is odd, then d |n, which implies 2n ≡ 1, contradiction.So d = 2d1. 2d1|2n, so d1|n.However, 2d1 = d |(p− 1), so d1| p−1
2 . This implies d1 < p. By minimalityd1 ∈ {1, 3}. If d1 = 1, then d = 2, and 22 ≡ 1 (mod p), contradiction. Ifd1 = 3, then d = 6, and 26 ≡ 1 (mod p), so p|63, which implies p = 7.But the order of 2 modulo 7 is 3, which is odd, contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 13/16
![Page 51: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/51.jpg)
One of my Favorite Solutions
Problem(IMO 1990) Find all positive integers n > 1 such that 2n+1
n2 is an integer.
Solution.Clearly, n must be odd. Let 3k be the highest power of 3 deviding n.Then 32k |n2|2n + 1, (2n ≡ −1 (mod 32k)). By previous slide, this implies32k−1|n. So 2k − 1 ≤ k , k ≤ 1. This shows that n has at most onefactor of 3. Note that n = 3 is a solution. We show that this is the onlysolution.Suppose that n has a prime factor greater than 3; let p be the least suchprime. Then 2n ≡ −1 (mod p).
Let d be the order of 2 modulo p. Since22n ≡ 1, d |2n. If d is odd, then d |n, which implies 2n ≡ 1, contradiction.So d = 2d1. 2d1|2n, so d1|n.However, 2d1 = d |(p− 1), so d1| p−1
2 . This implies d1 < p. By minimalityd1 ∈ {1, 3}. If d1 = 1, then d = 2, and 22 ≡ 1 (mod p), contradiction. Ifd1 = 3, then d = 6, and 26 ≡ 1 (mod p), so p|63, which implies p = 7.But the order of 2 modulo 7 is 3, which is odd, contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 13/16
![Page 52: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/52.jpg)
One of my Favorite Solutions
Problem(IMO 1990) Find all positive integers n > 1 such that 2n+1
n2 is an integer.
Solution.Clearly, n must be odd. Let 3k be the highest power of 3 deviding n.Then 32k |n2|2n + 1, (2n ≡ −1 (mod 32k)). By previous slide, this implies32k−1|n. So 2k − 1 ≤ k , k ≤ 1. This shows that n has at most onefactor of 3. Note that n = 3 is a solution. We show that this is the onlysolution.Suppose that n has a prime factor greater than 3; let p be the least suchprime. Then 2n ≡ −1 (mod p). Let d be the order of 2 modulo p. Since22n ≡ 1, d |2n.
If d is odd, then d |n, which implies 2n ≡ 1, contradiction.So d = 2d1. 2d1|2n, so d1|n.However, 2d1 = d |(p− 1), so d1| p−1
2 . This implies d1 < p. By minimalityd1 ∈ {1, 3}. If d1 = 1, then d = 2, and 22 ≡ 1 (mod p), contradiction. Ifd1 = 3, then d = 6, and 26 ≡ 1 (mod p), so p|63, which implies p = 7.But the order of 2 modulo 7 is 3, which is odd, contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 13/16
![Page 53: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/53.jpg)
One of my Favorite Solutions
Problem(IMO 1990) Find all positive integers n > 1 such that 2n+1
n2 is an integer.
Solution.Clearly, n must be odd. Let 3k be the highest power of 3 deviding n.Then 32k |n2|2n + 1, (2n ≡ −1 (mod 32k)). By previous slide, this implies32k−1|n. So 2k − 1 ≤ k , k ≤ 1. This shows that n has at most onefactor of 3. Note that n = 3 is a solution. We show that this is the onlysolution.Suppose that n has a prime factor greater than 3; let p be the least suchprime. Then 2n ≡ −1 (mod p). Let d be the order of 2 modulo p. Since22n ≡ 1, d |2n. If d is odd, then d |n, which implies 2n ≡ 1, contradiction.So d = 2d1.
2d1|2n, so d1|n.However, 2d1 = d |(p− 1), so d1| p−1
2 . This implies d1 < p. By minimalityd1 ∈ {1, 3}. If d1 = 1, then d = 2, and 22 ≡ 1 (mod p), contradiction. Ifd1 = 3, then d = 6, and 26 ≡ 1 (mod p), so p|63, which implies p = 7.But the order of 2 modulo 7 is 3, which is odd, contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 13/16
![Page 54: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/54.jpg)
One of my Favorite Solutions
Problem(IMO 1990) Find all positive integers n > 1 such that 2n+1
n2 is an integer.
Solution.Clearly, n must be odd. Let 3k be the highest power of 3 deviding n.Then 32k |n2|2n + 1, (2n ≡ −1 (mod 32k)). By previous slide, this implies32k−1|n. So 2k − 1 ≤ k , k ≤ 1. This shows that n has at most onefactor of 3. Note that n = 3 is a solution. We show that this is the onlysolution.Suppose that n has a prime factor greater than 3; let p be the least suchprime. Then 2n ≡ −1 (mod p). Let d be the order of 2 modulo p. Since22n ≡ 1, d |2n. If d is odd, then d |n, which implies 2n ≡ 1, contradiction.So d = 2d1. 2d1|2n, so d1|n.
However, 2d1 = d |(p− 1), so d1| p−12 . This implies d1 < p. By minimality
d1 ∈ {1, 3}. If d1 = 1, then d = 2, and 22 ≡ 1 (mod p), contradiction. Ifd1 = 3, then d = 6, and 26 ≡ 1 (mod p), so p|63, which implies p = 7.But the order of 2 modulo 7 is 3, which is odd, contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 13/16
![Page 55: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/55.jpg)
One of my Favorite Solutions
Problem(IMO 1990) Find all positive integers n > 1 such that 2n+1
n2 is an integer.
Solution.Clearly, n must be odd. Let 3k be the highest power of 3 deviding n.Then 32k |n2|2n + 1, (2n ≡ −1 (mod 32k)). By previous slide, this implies32k−1|n. So 2k − 1 ≤ k , k ≤ 1. This shows that n has at most onefactor of 3. Note that n = 3 is a solution. We show that this is the onlysolution.Suppose that n has a prime factor greater than 3; let p be the least suchprime. Then 2n ≡ −1 (mod p). Let d be the order of 2 modulo p. Since22n ≡ 1, d |2n. If d is odd, then d |n, which implies 2n ≡ 1, contradiction.So d = 2d1. 2d1|2n, so d1|n.However, 2d1 = d |(p− 1), so d1| p−1
2 . This implies d1 < p.
By minimalityd1 ∈ {1, 3}. If d1 = 1, then d = 2, and 22 ≡ 1 (mod p), contradiction. Ifd1 = 3, then d = 6, and 26 ≡ 1 (mod p), so p|63, which implies p = 7.But the order of 2 modulo 7 is 3, which is odd, contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 13/16
![Page 56: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/56.jpg)
One of my Favorite Solutions
Problem(IMO 1990) Find all positive integers n > 1 such that 2n+1
n2 is an integer.
Solution.Clearly, n must be odd. Let 3k be the highest power of 3 deviding n.Then 32k |n2|2n + 1, (2n ≡ −1 (mod 32k)). By previous slide, this implies32k−1|n. So 2k − 1 ≤ k , k ≤ 1. This shows that n has at most onefactor of 3. Note that n = 3 is a solution. We show that this is the onlysolution.Suppose that n has a prime factor greater than 3; let p be the least suchprime. Then 2n ≡ −1 (mod p). Let d be the order of 2 modulo p. Since22n ≡ 1, d |2n. If d is odd, then d |n, which implies 2n ≡ 1, contradiction.So d = 2d1. 2d1|2n, so d1|n.However, 2d1 = d |(p− 1), so d1| p−1
2 . This implies d1 < p. By minimalityd1 ∈ {1, 3}.
If d1 = 1, then d = 2, and 22 ≡ 1 (mod p), contradiction. Ifd1 = 3, then d = 6, and 26 ≡ 1 (mod p), so p|63, which implies p = 7.But the order of 2 modulo 7 is 3, which is odd, contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 13/16
![Page 57: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/57.jpg)
One of my Favorite Solutions
Problem(IMO 1990) Find all positive integers n > 1 such that 2n+1
n2 is an integer.
Solution.Clearly, n must be odd. Let 3k be the highest power of 3 deviding n.Then 32k |n2|2n + 1, (2n ≡ −1 (mod 32k)). By previous slide, this implies32k−1|n. So 2k − 1 ≤ k , k ≤ 1. This shows that n has at most onefactor of 3. Note that n = 3 is a solution. We show that this is the onlysolution.Suppose that n has a prime factor greater than 3; let p be the least suchprime. Then 2n ≡ −1 (mod p). Let d be the order of 2 modulo p. Since22n ≡ 1, d |2n. If d is odd, then d |n, which implies 2n ≡ 1, contradiction.So d = 2d1. 2d1|2n, so d1|n.However, 2d1 = d |(p− 1), so d1| p−1
2 . This implies d1 < p. By minimalityd1 ∈ {1, 3}. If d1 = 1, then d = 2, and 22 ≡ 1 (mod p), contradiction.
Ifd1 = 3, then d = 6, and 26 ≡ 1 (mod p), so p|63, which implies p = 7.But the order of 2 modulo 7 is 3, which is odd, contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 13/16
![Page 58: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/58.jpg)
One of my Favorite Solutions
Problem(IMO 1990) Find all positive integers n > 1 such that 2n+1
n2 is an integer.
Solution.Clearly, n must be odd. Let 3k be the highest power of 3 deviding n.Then 32k |n2|2n + 1, (2n ≡ −1 (mod 32k)). By previous slide, this implies32k−1|n. So 2k − 1 ≤ k , k ≤ 1. This shows that n has at most onefactor of 3. Note that n = 3 is a solution. We show that this is the onlysolution.Suppose that n has a prime factor greater than 3; let p be the least suchprime. Then 2n ≡ −1 (mod p). Let d be the order of 2 modulo p. Since22n ≡ 1, d |2n. If d is odd, then d |n, which implies 2n ≡ 1, contradiction.So d = 2d1. 2d1|2n, so d1|n.However, 2d1 = d |(p− 1), so d1| p−1
2 . This implies d1 < p. By minimalityd1 ∈ {1, 3}. If d1 = 1, then d = 2, and 22 ≡ 1 (mod p), contradiction. Ifd1 = 3, then d = 6, and 26 ≡ 1 (mod p), so p|63, which implies p = 7.
But the order of 2 modulo 7 is 3, which is odd, contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 13/16
![Page 59: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/59.jpg)
One of my Favorite Solutions
Problem(IMO 1990) Find all positive integers n > 1 such that 2n+1
n2 is an integer.
Solution.Clearly, n must be odd. Let 3k be the highest power of 3 deviding n.Then 32k |n2|2n + 1, (2n ≡ −1 (mod 32k)). By previous slide, this implies32k−1|n. So 2k − 1 ≤ k , k ≤ 1. This shows that n has at most onefactor of 3. Note that n = 3 is a solution. We show that this is the onlysolution.Suppose that n has a prime factor greater than 3; let p be the least suchprime. Then 2n ≡ −1 (mod p). Let d be the order of 2 modulo p. Since22n ≡ 1, d |2n. If d is odd, then d |n, which implies 2n ≡ 1, contradiction.So d = 2d1. 2d1|2n, so d1|n.However, 2d1 = d |(p− 1), so d1| p−1
2 . This implies d1 < p. By minimalityd1 ∈ {1, 3}. If d1 = 1, then d = 2, and 22 ≡ 1 (mod p), contradiction. Ifd1 = 3, then d = 6, and 26 ≡ 1 (mod p), so p|63, which implies p = 7.But the order of 2 modulo 7 is 3, which is odd, contradiction.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 13/16
![Page 60: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/60.jpg)
Ad hoc techniques
Often times the solution of a number theory problem does not involveheavy machinery, but use other “ad-hoc” ideas. Here’s an example.
ProblemShow that for any positive integer N, there exists a multiple of N thatconsists only of 1s and 0s. Furthermore, if N is relative prime to 10, showthat there exists a multiple that consists only of 1s.
Any ideas?
Pigeonhole Principle!
Solution.Consider the N + 1 integers 1, 11, 111, · · · , 111 · · · 1 (N + 1 1s). Whendivided by N they leave N + 1 remainders. By the pigeonhold principle,two of these remainders are equal, so the difference in the correspondinginteger is divisible by N. But the difference is of the form 111...000.If N is relatively prime to 10, then we can divide out all powers of 10, toobtain an integer of the form 11...1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 14/16
![Page 61: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/61.jpg)
Ad hoc techniques
Often times the solution of a number theory problem does not involveheavy machinery, but use other “ad-hoc” ideas. Here’s an example.
ProblemShow that for any positive integer N, there exists a multiple of N thatconsists only of 1s and 0s. Furthermore, if N is relative prime to 10, showthat there exists a multiple that consists only of 1s.
Any ideas?
Pigeonhole Principle!
Solution.Consider the N + 1 integers 1, 11, 111, · · · , 111 · · · 1 (N + 1 1s). Whendivided by N they leave N + 1 remainders. By the pigeonhold principle,two of these remainders are equal, so the difference in the correspondinginteger is divisible by N. But the difference is of the form 111...000.If N is relatively prime to 10, then we can divide out all powers of 10, toobtain an integer of the form 11...1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 14/16
![Page 62: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/62.jpg)
Ad hoc techniques
Often times the solution of a number theory problem does not involveheavy machinery, but use other “ad-hoc” ideas. Here’s an example.
ProblemShow that for any positive integer N, there exists a multiple of N thatconsists only of 1s and 0s. Furthermore, if N is relative prime to 10, showthat there exists a multiple that consists only of 1s.
Any ideas?
Pigeonhole Principle!
Solution.Consider the N + 1 integers 1, 11, 111, · · · , 111 · · · 1 (N + 1 1s). Whendivided by N they leave N + 1 remainders. By the pigeonhold principle,two of these remainders are equal, so the difference in the correspondinginteger is divisible by N. But the difference is of the form 111...000.If N is relatively prime to 10, then we can divide out all powers of 10, toobtain an integer of the form 11...1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 14/16
![Page 63: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/63.jpg)
Ad hoc techniques
Often times the solution of a number theory problem does not involveheavy machinery, but use other “ad-hoc” ideas. Here’s an example.
ProblemShow that for any positive integer N, there exists a multiple of N thatconsists only of 1s and 0s. Furthermore, if N is relative prime to 10, showthat there exists a multiple that consists only of 1s.
Any ideas?
Pigeonhole Principle!
Solution.Consider the N + 1 integers 1, 11, 111, · · · , 111 · · · 1 (N + 1 1s). Whendivided by N they leave N + 1 remainders.
By the pigeonhold principle,two of these remainders are equal, so the difference in the correspondinginteger is divisible by N. But the difference is of the form 111...000.If N is relatively prime to 10, then we can divide out all powers of 10, toobtain an integer of the form 11...1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 14/16
![Page 64: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/64.jpg)
Ad hoc techniques
Often times the solution of a number theory problem does not involveheavy machinery, but use other “ad-hoc” ideas. Here’s an example.
ProblemShow that for any positive integer N, there exists a multiple of N thatconsists only of 1s and 0s. Furthermore, if N is relative prime to 10, showthat there exists a multiple that consists only of 1s.
Any ideas?
Pigeonhole Principle!
Solution.Consider the N + 1 integers 1, 11, 111, · · · , 111 · · · 1 (N + 1 1s). Whendivided by N they leave N + 1 remainders. By the pigeonhold principle,two of these remainders are equal, so the difference in the correspondinginteger is divisible by N. But the difference is of the form 111...000.If N is relatively prime to 10, then we can divide out all powers of 10, toobtain an integer of the form 11...1.
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 14/16
![Page 65: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/65.jpg)
Ad hoc techniques
The following problem illustrates that cleverness trumps heavy machinery.
Problem(IMO 1988) Let a and b be two positive integers such that
ab + 1|a2 + b2. Show that a2+b2
ab+1 is a perfect square.
Solution.Let k be the ratio. If a = b then 2a = k(a2 + 1). This impliesa = b = k = 1.If a < b, then let (a, b) be a solution of k(ab + 1) = a2 + b2 with thesmallest min{a, b}. Note that b satisfies the quadratic
b2 − kab + a2 − k = 0
Note that ka− b is the other root of this quadratic, and it is also aninteger (It is straightforward to show that ka− b > 0.) Hence,(a′, b′) = (ka− b, a) also satisfies k(a′b′ + 1) = a′2 + b′2.
But ka− b = a2−kb < a. This contradicts the choice (a, b).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 15/16
![Page 66: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/66.jpg)
Ad hoc techniques
The following problem illustrates that cleverness trumps heavy machinery.
Problem(IMO 1988) Let a and b be two positive integers such that
ab + 1|a2 + b2. Show that a2+b2
ab+1 is a perfect square.
Solution.Let k be the ratio. If a = b then 2a = k(a2 + 1).
This impliesa = b = k = 1.If a < b, then let (a, b) be a solution of k(ab + 1) = a2 + b2 with thesmallest min{a, b}. Note that b satisfies the quadratic
b2 − kab + a2 − k = 0
Note that ka− b is the other root of this quadratic, and it is also aninteger (It is straightforward to show that ka− b > 0.) Hence,(a′, b′) = (ka− b, a) also satisfies k(a′b′ + 1) = a′2 + b′2.
But ka− b = a2−kb < a. This contradicts the choice (a, b).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 15/16
![Page 67: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/67.jpg)
Ad hoc techniques
The following problem illustrates that cleverness trumps heavy machinery.
Problem(IMO 1988) Let a and b be two positive integers such that
ab + 1|a2 + b2. Show that a2+b2
ab+1 is a perfect square.
Solution.Let k be the ratio. If a = b then 2a = k(a2 + 1). This impliesa = b = k = 1.
If a < b, then let (a, b) be a solution of k(ab + 1) = a2 + b2 with thesmallest min{a, b}. Note that b satisfies the quadratic
b2 − kab + a2 − k = 0
Note that ka− b is the other root of this quadratic, and it is also aninteger (It is straightforward to show that ka− b > 0.) Hence,(a′, b′) = (ka− b, a) also satisfies k(a′b′ + 1) = a′2 + b′2.
But ka− b = a2−kb < a. This contradicts the choice (a, b).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 15/16
![Page 68: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/68.jpg)
Ad hoc techniques
The following problem illustrates that cleverness trumps heavy machinery.
Problem(IMO 1988) Let a and b be two positive integers such that
ab + 1|a2 + b2. Show that a2+b2
ab+1 is a perfect square.
Solution.Let k be the ratio. If a = b then 2a = k(a2 + 1). This impliesa = b = k = 1.If a < b, then let (a, b) be a solution of k(ab + 1) = a2 + b2 with thesmallest min{a, b}. Note that b satisfies the quadratic
b2 − kab + a2 − k = 0
Note that ka− b is the other root of this quadratic, and it is also aninteger (It is straightforward to show that ka− b > 0.) Hence,(a′, b′) = (ka− b, a) also satisfies k(a′b′ + 1) = a′2 + b′2.
But ka− b = a2−kb < a. This contradicts the choice (a, b).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 15/16
![Page 69: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/69.jpg)
Ad hoc techniques
The following problem illustrates that cleverness trumps heavy machinery.
Problem(IMO 1988) Let a and b be two positive integers such that
ab + 1|a2 + b2. Show that a2+b2
ab+1 is a perfect square.
Solution.Let k be the ratio. If a = b then 2a = k(a2 + 1). This impliesa = b = k = 1.If a < b, then let (a, b) be a solution of k(ab + 1) = a2 + b2 with thesmallest min{a, b}. Note that b satisfies the quadratic
b2 − kab + a2 − k = 0
Note that ka− b is the other root of this quadratic, and it is also aninteger (It is straightforward to show that ka− b > 0.)
Hence,(a′, b′) = (ka− b, a) also satisfies k(a′b′ + 1) = a′2 + b′2.
But ka− b = a2−kb < a. This contradicts the choice (a, b).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 15/16
![Page 70: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/70.jpg)
Ad hoc techniques
The following problem illustrates that cleverness trumps heavy machinery.
Problem(IMO 1988) Let a and b be two positive integers such that
ab + 1|a2 + b2. Show that a2+b2
ab+1 is a perfect square.
Solution.Let k be the ratio. If a = b then 2a = k(a2 + 1). This impliesa = b = k = 1.If a < b, then let (a, b) be a solution of k(ab + 1) = a2 + b2 with thesmallest min{a, b}. Note that b satisfies the quadratic
b2 − kab + a2 − k = 0
Note that ka− b is the other root of this quadratic, and it is also aninteger (It is straightforward to show that ka− b > 0.) Hence,(a′, b′) = (ka− b, a) also satisfies k(a′b′ + 1) = a′2 + b′2.
But ka− b = a2−kb < a. This contradicts the choice (a, b).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 15/16
![Page 71: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/71.jpg)
Ad hoc techniques
The following problem illustrates that cleverness trumps heavy machinery.
Problem(IMO 1988) Let a and b be two positive integers such that
ab + 1|a2 + b2. Show that a2+b2
ab+1 is a perfect square.
Solution.Let k be the ratio. If a = b then 2a = k(a2 + 1). This impliesa = b = k = 1.If a < b, then let (a, b) be a solution of k(ab + 1) = a2 + b2 with thesmallest min{a, b}. Note that b satisfies the quadratic
b2 − kab + a2 − k = 0
Note that ka− b is the other root of this quadratic, and it is also aninteger (It is straightforward to show that ka− b > 0.) Hence,(a′, b′) = (ka− b, a) also satisfies k(a′b′ + 1) = a′2 + b′2.
But ka− b = a2−kb < a. This contradicts the choice (a, b).
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 15/16
![Page 72: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/72.jpg)
Conclusion
When you come upon a number theory problem, do not despair:
Try small cases to get intuition.
Consider modulo some prime p and try to apply the theory ofcongruences.
Consider concepts such as order or primitive root.
Be random and try something creative!
Course Logistics: This is the last lecture of this course. Next week isthanksgiving, and the week after that (our final class) is a Putnampractice session.
Mark your calendars: The Putnam contest will take place Saturday Dec.5 from 10am-1pm, from 3pm-6pm. This is MANDATORY for everyoneenrolled in the class. We need YOU to help keep our pizza fund alive!
Thanks to everyone who attended our talks! We hope that thiscourse was helpful in making you a better problem solver!
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 16/16
![Page 73: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/73.jpg)
Conclusion
When you come upon a number theory problem, do not despair:
Try small cases to get intuition.
Consider modulo some prime p and try to apply the theory ofcongruences.
Consider concepts such as order or primitive root.
Be random and try something creative!
Course Logistics: This is the last lecture of this course. Next week isthanksgiving, and the week after that (our final class) is a Putnampractice session.
Mark your calendars: The Putnam contest will take place Saturday Dec.5 from 10am-1pm, from 3pm-6pm. This is MANDATORY for everyoneenrolled in the class. We need YOU to help keep our pizza fund alive!
Thanks to everyone who attended our talks! We hope that thiscourse was helpful in making you a better problem solver!
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 16/16
![Page 74: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/74.jpg)
Conclusion
When you come upon a number theory problem, do not despair:
Try small cases to get intuition.
Consider modulo some prime p and try to apply the theory ofcongruences.
Consider concepts such as order or primitive root.
Be random and try something creative!
Course Logistics: This is the last lecture of this course. Next week isthanksgiving, and the week after that (our final class) is a Putnampractice session.
Mark your calendars: The Putnam contest will take place Saturday Dec.5 from 10am-1pm, from 3pm-6pm. This is MANDATORY for everyoneenrolled in the class. We need YOU to help keep our pizza fund alive!
Thanks to everyone who attended our talks! We hope that thiscourse was helpful in making you a better problem solver!
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 16/16
![Page 75: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/75.jpg)
Conclusion
When you come upon a number theory problem, do not despair:
Try small cases to get intuition.
Consider modulo some prime p and try to apply the theory ofcongruences.
Consider concepts such as order or primitive root.
Be random and try something creative!
Course Logistics: This is the last lecture of this course. Next week isthanksgiving, and the week after that (our final class) is a Putnampractice session.
Mark your calendars: The Putnam contest will take place Saturday Dec.5 from 10am-1pm, from 3pm-6pm. This is MANDATORY for everyoneenrolled in the class. We need YOU to help keep our pizza fund alive!
Thanks to everyone who attended our talks! We hope that thiscourse was helpful in making you a better problem solver!
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 16/16
![Page 76: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/76.jpg)
Conclusion
When you come upon a number theory problem, do not despair:
Try small cases to get intuition.
Consider modulo some prime p and try to apply the theory ofcongruences.
Consider concepts such as order or primitive root.
Be random and try something creative!
Course Logistics: This is the last lecture of this course. Next week isthanksgiving, and the week after that (our final class) is a Putnampractice session.
Mark your calendars: The Putnam contest will take place Saturday Dec.5 from 10am-1pm, from 3pm-6pm. This is MANDATORY for everyoneenrolled in the class. We need YOU to help keep our pizza fund alive!
Thanks to everyone who attended our talks! We hope that thiscourse was helpful in making you a better problem solver!
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 16/16
![Page 77: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/77.jpg)
Conclusion
When you come upon a number theory problem, do not despair:
Try small cases to get intuition.
Consider modulo some prime p and try to apply the theory ofcongruences.
Consider concepts such as order or primitive root.
Be random and try something creative!
Course Logistics: This is the last lecture of this course. Next week isthanksgiving, and the week after that (our final class) is a Putnampractice session.
Mark your calendars: The Putnam contest will take place Saturday Dec.5 from 10am-1pm, from 3pm-6pm. This is MANDATORY for everyoneenrolled in the class. We need YOU to help keep our pizza fund alive!
Thanks to everyone who attended our talks! We hope that thiscourse was helpful in making you a better problem solver!
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 16/16
![Page 78: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/78.jpg)
Conclusion
When you come upon a number theory problem, do not despair:
Try small cases to get intuition.
Consider modulo some prime p and try to apply the theory ofcongruences.
Consider concepts such as order or primitive root.
Be random and try something creative!
Course Logistics: This is the last lecture of this course. Next week isthanksgiving, and the week after that (our final class) is a Putnampractice session.
Mark your calendars: The Putnam contest will take place Saturday Dec.5 from 10am-1pm, from 3pm-6pm. This is MANDATORY for everyoneenrolled in the class. We need YOU to help keep our pizza fund alive!
Thanks to everyone who attended our talks! We hope that thiscourse was helpful in making you a better problem solver!
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 16/16
![Page 79: Number Theory - ``The queen of mathematics'' -- …pengshi/math149/number-theory.pdfNumber Theory has a LOT of Theory When I think of number theory, the following machineries come](https://reader030.vdocuments.us/reader030/viewer/2022021511/5abf99897f8b9a7e418e5849/html5/thumbnails/79.jpg)
Conclusion
When you come upon a number theory problem, do not despair:
Try small cases to get intuition.
Consider modulo some prime p and try to apply the theory ofcongruences.
Consider concepts such as order or primitive root.
Be random and try something creative!
Course Logistics: This is the last lecture of this course. Next week isthanksgiving, and the week after that (our final class) is a Putnampractice session.
Mark your calendars: The Putnam contest will take place Saturday Dec.5 from 10am-1pm, from 3pm-6pm. This is MANDATORY for everyoneenrolled in the class. We need YOU to help keep our pizza fund alive!
Thanks to everyone who attended our talks! We hope that thiscourse was helpful in making you a better problem solver!
Peng Shi, Duke University Number Theory, “The queen of mathematics” – Gauss 16/16