Contents / Discrete Mathematics / Number Theory

Chapter 6

Number Theory

The division algorithm with existence and uniqueness; primes, the square-root test and Euclid's infinitude; the Euclidean algorithm with its logarithmic bound and Fibonacci worst case; Bezout's identity from the extended algorithm; modular arithmetic, inverses and linear congruences; fast exponentiation by squaring; Fermat's little theorem, Euler's totient and the Chinese remainder theorem; and RSA with its correctness proved.

About the practice questions. They check that you can carry out this chapter's computations correctly, and each one is graded on a single answer. They are not proof exercises: working through them confirms the mechanics, not that you could prove the results yourself. For that, re-read the statements above and try to reconstruct their proofs with the page closed.