Quadratic characters on ℤ/nℤ #
This file defines some quadratic characters on the rings ℤ/4ℤ and ℤ/8ℤ.
We set them up to be of type MulChar (ZMod n) ℤ, where n is 4 or 8.
Tags #
quadratic character, zmod
Quadratic characters mod 4 and 8 #
We define the primitive quadratic characters χ₄ on ZMod 4
and χ₈, χ₈' on ZMod 8.
@[simp]
The value of χ₄ n, for n : ℕ, depends only on n % 4.
The value of χ₄ n, for n : ℤ, depends only on n % 4.
If n % 4 = 1, then χ₄ n = 1.
If n % 4 = 3, then χ₄ n = -1.
If n % 4 = 1, then χ₄ n = 1.
If n % 4 = 3, then χ₄ n = -1.
If n % 4 = 1, then (-1)^(n/2) = 1.
If n % 4 = 3, then (-1)^(n/2) = -1.
@[simp]
The value of χ₈ n, for n : ℕ, depends only on n % 8.
The value of χ₈ n, for n : ℤ, depends only on n % 8.
@[simp]