powered by
List all quadratic residues of an integer.
quadratic_residues(n)
Vector of integers.
integer.
Squares all numbers between 0 and n/2 and generate a unique list of all these numbers modulo n.
n/2
n
legendre_sym
quadratic_residues(17)
Run the code above in your browser using DataLab