Salam Academy
Option · Module

Number theory

1 subtopic≈ 45 min in total
  1. Divisibility and modular arithmetic

    Euclid's algorithm finds gcd⁡(a,b)\gcd(a,b) by repeated division, and running it backwards writes the gcd as ax+byax+by (Bézout). In modular arithmetic we work with remainders: a≡b(modn)a\equiv b\pmod n means n∣a−bn\mid a-b. Fermat: for prime p∤ap\nmid a, ap−1≡1(modp)a^{p-1}\equiv1\pmod p.

    ≈ 45 min