Elementary Number Theory: Primes, Congruences, and Secrets
Connects classical topics with computation, cryptography and elliptic curves. Broader than a minimal congruences course; later chapters benefit from abstract algebra.
Elementary number theory turns experiments with integers into proofs about divisibility and congruences. Stein develops that route with Euclidean algorithms, modular arithmetic and quadratic reciprocity. Shoup connects integer and finite-field arithmetic to algorithms and cryptography. Choose the first route to strengthen proof and congruence skills; choose the computational continuation when you can explain an algorithm's correctness as well as produce its output.
Elementary Number Theory: Primes, Congruences, and Secrets — William Stein. Read 1.1 on factorization and the Euclidean algorithm; 2.1-2.3 on congruences, the Chinese remainder theorem, inverses and powers; then 4.1-4.3 on quadratic reciprocity and Euler's criterion.
Run the extended Euclidean algorithm by hand and interpret its coefficients as a proof of a modular inverse. Solve a Chinese remainder problem, then verify the solution in every modulus. List small quadratic residues before applying reciprocity, keeping track of the parity signs. For an algorithmic example, separate correctness, termination and cost. Test a calculation on small inputs, but explain why the proof covers all permitted inputs rather than using numerical evidence as the final argument.
Connect Euclid's algorithm, modular inverses and quadratic residues.
Read 1.1 on factorization and the Euclidean algorithm; 2.1-2.3 on congruences, the Chinese remainder theorem, inverses and powers; then 4.1-4.3 on quadratic reciprocity and Euler's criterion.
Source · Checked 2026-10-16
Study correctness and complexity after elementary congruences are comfortable.
Locate integer arithmetic and finite-field algorithms through the author's contents; exact section numbering was not inherited.
Source · Checked 2026-10-11
Congruence and quadratic-residue exercises with selected hints. Sections 1.3, 2.6 and 4.6 contain the exercise sets. Answers and Hints begins on printed page 149; match the chapter and exercise number.. Public exercises and an Answers and Hints section are present. It contains selected answers and proof hints, not a verified complete worked solution manual.
Try a proof or calculation before opening the hint. These solutions address the checks below, not the exercises in the linked textbooks.
Use the extended Euclidean algorithm to find the inverse of 17 modulo 43, and solve x=2 modulo 3, x=3 modulo 5 and x=2 modulo 7, with a uniqueness statement.
Back-substitute the Euclidean divisions. Combine the congruences modulo 3 and 7 first.
The divisions are , , and . Back-substitution gives . Thus , checked by .
The conditions modulo and together mean for some integer , since these moduli are coprime. Modulo , this becomes , hence . Therefore for . The value has residues modulo . Any two solutions differ by an integer divisible by all three pairwise coprime moduli, hence by , proving uniqueness modulo .
If this was the sticking point:
Already comfortable with this? Skip the congruence review if you can justify the inverse and CRT constructions. Skip the residue selection if reciprocity, its sign and the supplementary laws are usable without a table.
Review the prerequisites · Compare the full subject collection
Connects classical topics with computation, cryptography and elliptic curves. Broader than a minimal congruences course; later chapters benefit from abstract algebra.
Introduces congruences, primes and reciprocity with geometric, computational and cryptographic examples. Online Sage examples support experimentation.
Begins with divisibility and primes before progressing to congruences and further arithmetic. Later parts benefit from elementary group theory.
A first-course presentation of integer arithmetic and classical number-theoretic problems. The linked publisher page is a purchase route, not an open full text.
A problem-and-example based introduction to number-theoretic reasoning. Freely available omitted chapters are supplements, not the full paid text.
An introductory arithmetic course with algorithms and applications. Distinct from other authors’ books sharing this title.
An undergraduate text on primes, congruences, arithmetic functions, quadratic residues and continued fractions, with later introductions to analytic topics.
Develops divisibility, prime numbers, congruences, arithmetic functions, primality tests and public-key cryptography through short theorem-based chapters.
Connects integer and finite-field arithmetic with algorithms and cryptography. A computational route complementing a traditional proof-based number theory course.
Develops elementary number theory through Farey diagrams, continued fractions and quadratic forms. Offers a geometric route toward class groups.
Uses number theory as a meeting point of algebra, analysis and mathematical reasoning. A broader bridge beyond a first congruence course.
A problem-centered route through number-theoretic structures. Solve the examples actively before moving to local or analytic methods.
Builds a bridge from elementary arithmetic to questions about prime distribution. Later analytic portions require stronger analysis preparation.
Bridges elementary arithmetic and modern algebraic number theory. Later topics require algebra beyond an introductory congruence course.
Ten parts move from integer arithmetic and congruences to cryptography, approximation, elliptic curves, quadratic rings and geometry of numbers.
Moves from integer arithmetic to rings, quadratic and cyclotomic examples, factorization, congruences and sums of squares. Later chapters are drafts or outlines.