Difference between revisions of "Math 567 -- Elementary Number Theory"
Line 83: | Line 83: | ||
B.1. When d = 1+2i, show that, for each n in Z[i], there is a '''unique''' pair (q,r) in Z[i] such that n = qd+r and r is contained in the set {0,1,2,3,4}. For instance, i can be written as i(1+2i) + 2, so we say i reduces to 2 mod (1+2i). | B.1. When d = 1+2i, show that, for each n in Z[i], there is a '''unique''' pair (q,r) in Z[i] such that n = qd+r and r is contained in the set {0,1,2,3,4}. For instance, i can be written as i(1+2i) + 2, so we say i reduces to 2 mod (1+2i). | ||
+ | (Hint: Suppose q(1+2i)+r = q'(1+2i) + r'. What can we say about (r-r'), and why is this incompatible with both r and r' being in {0,1,2,3,4}? | ||
B.2. Show that if n is an integer in Z, the reduction of n mod (1+2i) is equal to its reduction mod 5. | B.2. Show that if n is an integer in Z, the reduction of n mod (1+2i) is equal to its reduction mod 5. |
Revision as of 08:47, 7 October 2010
MATH 567
Elementary Number Theory
MWF 1:20-2:10, Van Vleck B119
Professor: Jordan Ellenberg (ellenber@math.wisc.edu) Office Hours: Weds, 2:30-3:30, Van Vleck 323.
Grader: Silas Johnson (snjohnson3@wisc.edu) Office Hours: Thurs, 1:15-2:15, Van Vleck 522. Silas's page, with problem set solutions.
Math 567 is a course in elementary number theory, aimed at undergraduates majoring in math or other quantitative disciplines. A general familiarity with abstract algebra at the level of Math 541 will be assumed, but students who haven't taken 541 are welcome to attend if they're willing to play a little catchup. We will be using William Stein's new (and cheap) textbook Elementary Number Theory: Primes, Congruences, and Secrets, which emphasizes computational approaches to the subject. If you don't need a physical copy of the book, it is available as a free legal .pdf. We will be using the (free, public-domain) mathematical software SAGE, developed largely by Stein, as an integral component of our coursework. There is a useful online tutorial. You can download SAGE to your own computer or use it online.
Topics include some subset of, but are not limited to: Divisibility, the Euclidean algorithm and the GCD, linear Diophantine equations, prime numbers and uniqueness of factorization. Congruences, Chinese remainder theorem, Fermat's "little" theorem, Wilson's theorem, Euler's theorem and totient function, the RSA cryptosystem. Number-theoretic functions, multiplicative functions, Möbius inversion. Primitive roots and indices. Quadratic reciprocity and the Legendre symbol. Perfect numbers, Mersenne primes, Fermat primes. Pythagorean triples, Special cases of Fermat's "last" theorem. Fibonacci numbers. Continued fractions. Distribution of primes, discussion of prime number theorem. Primality testing and factoring algorithms.
Course Policies: Homework will be due on Fridays. It can be turned in late only with advance permission from your grader. It is acceptable to use calculators and computers on homework (indeed, some of it will require a computer) but calculators are not allowed during exams. You are encouraged to work together on homework, but writeups must be done individually.
Many of the problems in this course will ask you to prove things. I expect proofs to be written in English sentences; the proofs in Stein's book are a good model for the level of verbosity I am looking for.
Grading: The grade in Math 567 will be composed of 40% homework, 20% each of three midterms. The last midterm will be take-home, and will be due on the last day of class. There will be no final exam in Math 567.
Syllabus: (This may change as we see what pace works well for the course. All section numbers refer to Stein's book.)
- Sep 3-10: Prime numbers, prime factorizations, Euclidean algorithm and GCD (1.1-1.2)
- Sep 13-17: The integers mod n, Euler's theorem, the phi function (2.1-2.2)
- Sep 20-24: Modular exponentiation, primality testing, and primitive roots (2.4-2.5)
- Sep 27-Oct 1: Public-key cryptography and RSA (3.1-3.4)
- Oct 4 - 8: Algebraic numbers
- Oct 6: First midterm exam
- Oct 11-15: Quadratic reciprocity (4.1-4.4)
- Oct 18-22: Finite and infinite continued fractions (5.1-5.3)
- Oct 25-29: Continued fractions and diophantine approximation (5.4-5.5)
- Nov 1-5: Diophantine equations I: Pell's equation and Lagrange's theorem
- Nov 8-12: Elliptic curves (6.1-6.2)
- Nov 10: Second midterm exam
- Nov 15-19: Applications of elliptic curves (6.3-6.4)
- Nov 22-Dec 3: Diophantine equations II: Fermat, generalized Fermat, and probabilistic methods
- Dec 6-15: advanced topic TBD: maybe a look at the Sato-Tate conjecture?
Homework: Homework is due at the beginning of class on the specified Friday. Typing your homework is not a requirement, but if you don't already know LaTeX I highly recommend that you learn it and use it to typeset your homework. I will sometimes assign extra problems, which I will e-mail to the class list and include here.
- Sep 13 (note this is Monday, not Friday!): 1.1, 1.3, 1.5, 1.7 (use SAGE), 1.8, 1.14.
Problem A: Use SAGE to compute the number of x in [1..N] such that x^2 + 1 is prime, for N = 100, N = 1000, and N = 10000. Let f(N) be the number of such N.
a) Can you formulate a conjecture about the relationship between f(N) and N/log N?
b) What if x^2 + 1 is replaced with x^2 + 2? Can you explain why x^2 + 2 appears less likely to be prime? (Hint: consider x mod 3.)
c) Prove that f(N) is at most (1/2)N+1. (Hint: consider x mod 2.)
d) Give as good an upper bound as you can for f(N).
Note that, despite the evident regularities you'll observe in this problem, we do not even know whether there are infinitely many primes of the form x^2 + 1! You would become very famous if you proved this.
- Sep 17: 2.6 (the formulation of numerical evidence should be done by Sage if you've got Sage working, and by calculator if not; you can use an online tool like this to test whether a number is prime.) 2.8,2.9,2.11,2.12,2.14,2.19
.
- Sep 24: 2.15, 2.16 (note that I presented part a) of this in class), 2.20, 2.23, 2.26.
Problem A: Prove that if n=pq, with p,q prime, then n is not a Carmichael number.
- Oct 1:
Book problems: 2.31 (I will give a hint for this problem later in the week.) 3.4,3.5,3.6
Problem A. Prove that there are infinitely many primes p such that 2 is not a primitive root in Z/pZ. We break this up into steps. Problem A.1. Prove that, if x is an element of Z/nZ, then x^2 is not a primitive root. Problem A.2. Prove that there are infinitely many primes p such that 2 is a square in Z/pZ. Hint: suppose there are only finitely many such primes p_1, .. p_r, and define N = (p_1 .. p_r)^2 - 2. Where can you go from here...? Problem A.3. Give a list of five primes p such that 2 is not a primitive root in Z/pZ (you can use the method of this proof or any other.)
Problem B. Prove that 24 is the largest integer n such that every element of (Z/nZ)^* is a root of x^2-1.
- Oct 8:
Problem A. Give a prime factorization of the Gaussian integer 7+9i.
Problem B. We showed in class that Z[i] satisfies a reduction theorem: if n and d are Gaussian integers, then there exists integers q and r such that n = qd + r and Norm(r) < Norm(d). But (by contrast with the case of Z) this d may not be unique. In some contexts it is better to be able to choose r uniquely, even if this means letting r have norm greater than Norm(d).
B.1. When d = 1+2i, show that, for each n in Z[i], there is a unique pair (q,r) in Z[i] such that n = qd+r and r is contained in the set {0,1,2,3,4}. For instance, i can be written as i(1+2i) + 2, so we say i reduces to 2 mod (1+2i). (Hint: Suppose q(1+2i)+r = q'(1+2i) + r'. What can we say about (r-r'), and why is this incompatible with both r and r' being in {0,1,2,3,4}?
B.2. Show that if n is an integer in Z, the reduction of n mod (1+2i) is equal to its reduction mod 5.
Problem C. Let's try to figure out how to define "phi(d)" for a Gaussian integer d. Suppose S is a set of Gaussian integers such that every n in Z[i] can be written uniquely as qd+r, with q in Z[i] and r in S. (So for instance when d=1+2i, we showed in problem B that we can take S to be {0...4}. It would also be OK to take S to be {1..5} or {0,i,2i,1+i,1+2i}. In fact, it turns out that S has to be a set of size Norm(d) (I might or might not prove this in class; if not, feel free just to accept it.)
Now define phi(d) to be the number of elements s of S such that s and d are coprime.
C.1. Compute phi(1+2i) and phi(3). C.2. Prove that the value of phi(d) does not depend on the choice of S. C.3. Prove that every n in Z[i] which is coprime to 3 satisfies n^phi(3) = 1 mod 3; that is, Euler's theorem holds in this case. (You can prove this by direct computation; of course, if you want, you are welcome to prove that Euler's theorem holds for Z[i] in general, adapting the proof in Stein's book or the one we gave in class.)
Problem D. Express 50005 as the sum of two squares. (MOVED TO NEXT WEEK IF YOU HAVEN'T ALREADY DONE IT)