Lemma

Number Theory · Chapter 4 of 11

Modular arithmetic

5 curated · 5 from open sources

Before you startAI-drafted · not yet reviewed by an editor

Two integers are congruent modulo , written a mod n, when they leave the same remainder upon division by . Congruences behave like equations: you may add, subtract, and multiply both sides by the same integer, and replace any number by its remainder modulo at any time. For a prime , Fermat's little theorem states a^{p-1} mod p = 1 whenever does not divide . To solve ax mod n = b, multiply both sides by the inverse of modulo , the number satisfying a imes a^{-1} mod n = 1.

Curated

5
#TitleDifficultyTags

From open sources

5

Complete problems only, with worked solutions first. Show everything

#TitleDifficulty