quadratic_residues: Quadratic Residues

View source: R/qresidues.R

quadratic_residuesR Documentation

Quadratic Residues

Description

List all quadratic residues of an integer.

Usage

quadratic_residues(n)

Arguments

n

integer.

Details

Squares all numbers between 0 and n/2 and generate a unique list of all these numbers modulo n.

Value

Vector of integers.

See Also

legendre_sym

Examples

quadratic_residues(17)

numbers documentation built on Nov. 23, 2022, 9:06 a.m.