Week 79 of 145 · TAOCP Vol 2: Seminumerical Algorithms

TAOCP 4.3.2 Modular Arithmetic

2 tasks, 4 steps. Open a task's steps to see exactly what to do; each guide has the detail.

Sign up or sign in to tick these off and give this week a due date.

By the end of this week you can

  • Use residues modulo several coprime moduli to add and multiply big numbers.
  • Compute a number from its residues with the Chinese remainder theorem.
  • Compute modular inverses with the extended Euclidean algorithm.

Week 79 · Self-check

Three quick questions

Ungraded, and it never holds anything up. Pick an answer to see why.

  1. Which x in [0, 105) has x ≡ 2 (mod 3), x ≡ 3 (mod 5) and x ≡ 2 (mod 7)?
  2. What is the inverse of 3 modulo 11?
  3. Someone uses moduli 4 and 6, which are not coprime. How many different numbers can the residue pairs tell apart?

Nothing is saved while signed out.

Watch along

Free talks and lectures that go with this week, on the speakers' own channels. Optional.

Discussion

0 posts

Stuck on week 79, or finished early? Say what you tried and what happened. Hints over answers: full solutions go in a spoiler.

No posts yet. Ask a question or share a tip.

Sign in to postAnyone can read. Posting needs an account with a confirmed email.

Spot a mistake? Report it