Legendre符號對奇質數p,Legendre符號以0、1、-1分別編碼zero class、nonzero quadratic residue與nonresidue。atlas-legendre-symbol · canonical_mkoLegendre符號前置節點二次剩餘函數映射