Sid Makes Sense

Finite Fields And Modular Arithmetic

6 min read

Core idea: A prime field replaces continuous, approximate real arithmetic with a finite and exact number system.

Prime-field arithmetic

Fp={0,1,,p1},p prime.\mathbb{F}_p=\{0,1,\ldots,p-1\}, \qquad p\text{ prime}.
  • Reduce every addition, subtraction, and multiplication modulo pp.
  • ab(modp)a\equiv b\pmod p means aa and bb have the same remainder modulo pp.
  • Division uses a modular inverse: bb11(modp),abab1(modp).b\,b^{-1}\equiv1\pmod p, \qquad \frac ab\equiv a b^{-1}\pmod p.
  • Example in F11\mathbb{F}_{11}: 31=43^{-1}=4 because 341(mod11)3\cdot4\equiv1\pmod{11}.
  • A prime modulus ensures every nonzero element has an inverse; a composite modulus generally does not.

The curve equation is now interpreted as

y2x3+ax+b(modp).y^2\equiv x^3+ax+b\pmod p.

Next: Enumerate the coordinate pairs in Fp2\mathbb{F}_p^2 that satisfy this equation.