A software designed for computing the Legendre image effectively determines whether or not a given integer is a quadratic residue modulo a main quantity. For instance, figuring out whether or not 2 is a quadratic residue modulo 7 (i.e., if there exists an integer x such that x2 2 (mod 7)) will be simply completed with such a software. The outcome, sometimes represented as (a|p), is +1 if a is a quadratic residue modulo p (and a will not be divisible by p), -1 if a is a quadratic nonresidue modulo p, and 0 if a is divisible by p.
The sort of computation performs a vital function in quantity principle, notably in areas like primality testing and cryptography. Its historic roots lie within the work of Adrien-Marie Legendre, who launched the image within the late 18th century. The power to effectively compute this image has turn into more and more necessary with the rise of computational quantity principle and its functions in trendy pc science.