Elementary Number Theory

William Stein

Intended for Publication by Springer-Verlag

September 2004


This is a textbook about prime numbers, congruences, basic public-key cryptography, quadratic reciprocity, continued fractions, elliptic curves, and number theory algorithms. We assume the reader has some familiarity with groups, rings, and fields, and some programming experience. This book grew out of an undergraduate course that the author taught at Harvard University in 2001 and 2002.

Download:

Feel free to download this book and send me feedback, so the published version will be better.
  1. ent.pdf PDF version (1.6MB)
  2. ent.ps: Postscript version (9.2MB)
  3. ent.dvi: DVI version (1.1MB, missing diagrams and photos)
  4. ent_py: Python source code for Chapter 7 (download and rename to ent.py)
  5. stein-ent.tar.bz2: Everything needed to build the book, including LaTeX source files and graphics (7.2MB)