Skip to content
LaTeX (KaTeX) templates

Math — Number Theory

Congruence, gcd–lcm, Fermat's little theorem and Euler's totient.

Template previewLaTeX (KaTeX)
a≡b(modn)a \equiv b \pmod{n}gcd⁡(a,b)⋅lcm⁡(a,b)=ab\gcd(a,b)\cdot\operatorname{lcm}(a,b) = abap−1≡1(modp)a^{p-1} \equiv 1 \pmod{p}φ(n)=n∏p∣n(1−1p)\varphi(n) = n\prod_{p\mid n}\left(1 - \frac{1}{p}\right)

What this template contains

Equations
4
Source
4 lines

Make it your own.

a \equiv b \pmod{n}

\gcd(a,b)\cdot\operatorname{lcm}(a,b) = ab

a^{p-1} \equiv 1 \pmod{p}

\varphi(n) = n\prod_{p\mid n}\left(1 - \frac{1}{p}\right)