quadratic_residues {numbers} | R Documentation |
List all quadratic residues of an integer.
quadratic_residues(n)
n |
integer. |
Squares all numbers between 0 and n/2
and generate a unique list of
all these numbers modulo n
.
Vector of integers.
quadratic_residues(17)