Homework 1, due October 06.
Homework 2, due October 13.
Homework 3, due October 22.
Homework 4, due October 29.
Homework 5, due November 05.
Homework 6, due November 12.
Homework 7, due November 24.
Homework 8, due December 03.
December 04: Review 1
December 02:
November 30:
November 20: We spent more time talking about the Pell equation x^2 - dy^2 = 1. This has no positive integral solution if d is a perfect square. If d is not a perfect square and it has one solution, the smallest solution is called the fundamental solution. We proved that every solution can be obtained from the fundamental solution by the formulas from last class.
November 18: We spent most of the time showing that the equation x^4 + y^4 = z^2 has no integral solution with xyz nonzero. The key idea is Fermat's method of infinite descent, i.e., starting with any positive solution (x1, y1, z1) with gcd(x1, y1) = 1, we can construct a new positive solution (x2, y2, z2) again with gcd(x2,y2) = 1 and z2 < z1. This implies that there can be no solution as if there was one positive solution (x1, y1, z1), we can iterate our procedure to construct positive solutions (x2, y2, z2), (x3, y3, z3), ..., (xn, yn, zn), ...., with z1 > z2 > .... zn > ..., but you cannot have a strictly decreasing infinite sequence of positive integers (for example, n cannot be more than z1...). We then talked a bit more about the Pell equation x^2 - dy^2 = 1 and x^2 - dy^2 = -1, where d > 0. We showed that if x^2 - dy^2 = 1 has one positive solution, then it has infinitely many positive solutions. Similarly, if x^2 - dy^2 = -1 has one positive solution, then it has infinitely many positive solutions, and so does x^2 - dy^2 = 1.
November 16: We derived all Pythagorean triples that are primitive, i.e., (a, b, c) satisfying a^2 + b^2 = c^2 with a, b, and c having no common divisors.
November 13: Midterm 2.
November 09: Midterm 2 review.
November 06: We introduced Legendre symbol and proved Euler's criterion: for an odd prime p, we have (a/p) ≡ a^{(p-1)/2} (mod p). [Section 16.5, 16.6]
November 04: We proved Wilson's theorem, which states that (p−1)! ≡ −1 (mod p) for every prime p. We also completed the proof that x² ≡ −1 (mod p) has a solution if and only if p = 2 or p ≡ 1 (mod 4). We then defined what a quadratic residue modulo n is. [Sections 7.5, 16.4]
November 02: We proved that if ordₙ(a) = d, then ordₙ(aʳ) = d/gcd(d,r). Using this, we proved that there are exactly φ(d) integers of order d modulo p for every divisor d of p−1. In particular, primitive roots exist modulo every prime p, and there are exactly φ(p−1) of them. [Sections 8.2, 10.1, 10.3, 10.4]
October 30: We proved that if f(a) ≡ 0 (mod n), then f(x) ≡ (x−a)g(x) (mod n) for some polynomial g(x) with integer coefficients. Using this and induction on the degree, we proved that a nonzero polynomial of degree d modulo a prime p has at most d distinct roots modulo p. In particular, xᵈ ≡ 1 (mod p) has at most d distinct solutions. [Section 7.4]
October 28: We proved that S_φ(n) = n. We then introduced polynomials in one variable with integer coefficients, discussed congruence of polynomials modulo n, and defined what it means for an integer to be a root of a polynomial modulo n. We also discussed how to count distinct roots modulo n. [Sections 7.4, 9.5, 18.1]
October 26: We proved the theorem stated in the previous class. We then showed that the function d(n), which counts the number of divisors of n, is multiplicative, as is σ(n), the sum of the divisors of n. We also proved that Euler's totient function is multiplicative using the Chinese Remainder Theorem. In particular, these results allow us to obtain formulas for all three functions in terms of the prime factorization of n [Sections 9.4, 9.5, 18.1, 19.1, 19.2]
October 23: We defined the order of an integer a modulo n, denoted ordₙ(a), and proved that ordₙ(a) is finite if and only if a and n are coprime. When a and n are coprime, we proved that aᵐ ≡ 1 (mod n) if and only if m is divisible by ordₙ(a). In particular, by Euler's theorem, ordₙ(a) divides φ(n). We then defined what it means for a function to be multiplicative. For a function f: ℕ → ℂ, we defined the function S_f by S_f(n) = ∑_{d|n} f(d), where the sum is over all positive divisors d of n. For example, S_f(10) = f(1) + f(2) + f(5) + f(10). We stated the theorem that if f is multiplicative, then S_f is also multiplicative. [Sections 8.2, 9.2, 9.3, 18.1, 19.2]
October 21: We defined a reduced residue system (RRS) modulo n. We saw that an RRS modulo n can be obtained by starting with a complete residue system and removing all elements that are not coprime to n. We also showed that every RRS modulo n has the same cardinality, which we define to be φ(n), Euler's totient function. We then proved Euler's theorem and Fermat's little theorem. [Sections 7.5, 9.1, 9.2, 9.3]
October 19: We discussed how to solve a finite system of linear congruences Aᵢx ≡ Cᵢ (mod Nᵢ), where the moduli Nᵢ are pairwise coprime, by solving the individual congruences and iterating the Chinese Remainder Theorem. [Sections 5.3, 5.4]
October 16: We saw that the congruence Ax ≡ C (mod N) has a solution if and only if gcd(A,N) divides C. In this case, the solution is unique modulo N/gcd(A,N). We then gave a constructive proof of the Chinese Remainder Theorem: for coprime positive integers M and N, the congruences x ≡ a (mod N) and x ≡ b (mod M) have a unique solution modulo MN. [Sections 4.6, 5.1, 5.2, 5.3, 5.4]
October 14: Midterm 1 in class.
October 12: We proved that an integer a is invertible modulo n, i.e., there exists an integer z such that az ≡ 1 (mod n), if and only if gcd(a,n) = 1. In this case, z can be chosen to be a Bézout coefficient for a in the equation ra + sn = 1. We then introduced a complete residue system modulo n. [Sections 4.4, 4.6, 5.3.2]
October 09: We worked on a worksheet in class. In particular, we proved that if a ≡ b (mod n) and c ≡ d (mod n), then a+c ≡ b+d (mod n) and ac ≡ bd (mod n). [Section 4.3]
October 07: We stated the theorem about solutions to a linear Diophantine equation Ax + By = C, where A and B are not both zero. This equation has no integer solutions if d = gcd(A,B) does not divide C. If d divides C, then it has infinitely many integer solutions, parametrized by (x₀ + tB/d, y₀ − tA/d), where t is an integer and (x₀,y₀) is a particular solution. If d = Ar + Bs, then we can take x₀ = rC/d and y₀ = sC/d. We then defined congruences: we say that a is congruent to b modulo n if n divides a−b. For example, modulo 10, the integer 1 is congruent to both 11 and −9. We proved that congruence is reflexive (a ≡ a), symmetric (if a ≡ b, then b ≡ a), and transitive (if a ≡ b and b ≡ c, then a ≡ c), where all congruences are modulo n. [Sections 3.1, 4.1, 4.2, 4.3]
October 05: We saw some more corollaries of Bézout's theorem: the set {ra + sb | r,s ∈ ℤ} is precisely the set of integer multiples of gcd(a,b); gcd(ka,kb) = |k|gcd(a,b); and if d = gcd(a,b), then gcd(a/d,b/d) = 1. We then saw some corollaries of the Fundamental Theorem of Arithmetic: if a and b are positive coprime integers and ab = cⁿ, then there exist integers d and e such that a = dⁿ and b = eⁿ; and if the nth root of a positive integer is rational, then it is an integer. HW2 is posted. [Sections 3.7, 6.4]
October 02: We proved Euclid's lemma: if a prime p divides the product ab, then p must divide either a or b. By induction, we obtained that if a prime p divides a product a₁a₂⋯aᵣ, then p must divide at least one of the aᵢ. This was a key ingredient in our proof of the Fundamental Theorem of Arithmetic. [Section 6.3]
September 30: We saw the key facts that make the Euclidean algorithm work: gcd(a,0) = |a| and gcd(a+bq,b) = gcd(a,b) for all integers a, b, and q. We then saw how to use the Euclidean algorithm to prove Bézout's theorem: given integers a and b, there exist integers r and s such that gcd(a,b) = ra + sb. The integers r and s are called Bézout coefficients for a and b; they are not unique. [Sections 2.3, 2.4]
September 28: We defined prime integers and divisors. We proved (i) every integer greater than 1 has a prime divisor, (ii) there are infinitely many primes, and (iii) every integer greater than 1 has a prime factorization (we did not yet know that this factorization is unique!).
We then defined the greatest common divisor of two integers and ran the Euclidean algorithm on 17 and 5.
Make sure to check carefully that for integers a, b, c, r, and s, if a divides both b and c, then a divides rb + sc; and if a divides b and b divides c, then a divides c. [Sections 1.2, 2.1, 2.2, 2.3, 6.1, 6.2]
September 25: Introduction to the course. We discussed integer solutions of y² = 2ˣ + 3 in detail, as well as integer solutions of x² + y² = z² satisfying z = y+1.
Lecture Time: MWF 2 to 2:50pm
Lecture Location: PETERSON 102
Textbook: Number Theory: In Context and Interactive by Karl-Dieter Crisman. Available via this link. We will use the 2024/6 edition.
Discussion Section:
Section 001: Thursday, 2:00pm-2:50pm at APM 2301
Course Personnel:
Instructor: Karthik Ganapathy Venkitachalam
Teaching Assistant: Tran Duy Anh Le
Note: To contact us, please use Piazza. The system is highly catered to getting you help fast and efficiently from classmates, the TA, and myself. Rather than emailing questions to the teaching staff, I encourage you to post your questions on Piazza.
Office Hours:
Karthik Ganapathy: Monday 4:15pm to 5:45pm, Friday 11am to 12:30pm at APM 1230
Tran Duy Anh Le: Wednsday 3pm-5pm at HSS 4062
Homework:
Homework assignments will be posted on Canvas almost every week. Normally you will have one week to submit your completed homework via Gradescope. Your lowest homework assignment will be dropped at the end of the course when computing your grade.
Exam:
There will be two midterm exams and one final exam. No makeup exams will be given in this course.
Note: It is standard Math Department practice to utilize different versions of exams, both within each lecture's exam, and between lectures whose exams are at different times.
Midterm I: October 14, 2026, during class
Midterm II: November 13, 2026, during class
Final exam: December 9, 2026, 3:00pm-5:59pm at HSS 1330
Regrades: Regrade requests will be made using the built-in regrade request feature in Gradescope. There will be a limited window of time after the exams are made available during which the regrade request feature will be active. This time window will be announced when the exam scores are released. Only the regrade requests sent within the time window will be considered.
Grading Policy:
The grades will be determined using the formula: 10% Homework, 25% Midterm Exam I, 25% Midterm Exam II, 40% Final Exam.
The curve for this course will be determined at the end but will be at least as generous as the standard one (97 for A+; 94 for A; 90 for A-; 87 for B+; 84 for B; 80 for B-; 77 for C+; 74 for C; 70 for C-). No D grades will be assigned.
Attendance Policy: You are expected to attend every session of the lectures and discussion section you are enrolled in. Students who do not attend class rarely succeed in this course. If you must miss class for any reason, it is your responsibility to catch up on the material. You are also responsible for the information given in any announcements made during class. To help you with this, I will record every lectures in the event you are unable to attend. Lecture recordings can be found at UCSD Podcast.
Academic Integrity: Academic dishonesty is considered a serious offense at UCSD. Students caught cheating will face an administrative sanction which may include suspension or expulsion from the university. It is in your best interest to take pride in your work maintain your academic integrity.
Accommodations: Students requesting accommodations for this course due to a disability must provide a current Authorization for Accommodation (AFA) letter issued by the Office for Students with Disabilities (https://osd.ucsd.edu/.) Students are required to discuss accommodation arrangements with instructors and OSD liaisons in the department in advance of any exams or assignments.
Here are some resources from other UCSD instructors that you may find useful:
1) Cristian Popescu's course website from Winter 2021
2) Aaron Pollack's course website from Winter 2022