Learn R Programming

numbers (version 0.8-5)

quadratic_residues: Quadratic Residues

Description

List all quadratic residues of an integer.

Usage

quadratic_residues(n)

Value

Vector of integers.

Arguments

n

integer.

Details

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

See Also

legendre_sym

Examples

Run this code
quadratic_residues(17)

Run the code above in your browser using DataLab