calculating the Jacobi symbol
To calculate the Jacobi symbol for positive integers , odd, we apply the quadratic reciprocity law and the fact that
if . So if (otherwise the Jacobi symbol is ) and choose with . Then . To apply the quadratic reciprocity law, which basically allows us to exchange and , we need to make odd if it is even. Writing with odd does the trick since
Using the fact that
(1) |
we compute to be if and if . Now we apply the quadratic reciprocity law:
The factor is equal to if and if at least one of the numbers is congruent to modulo . At this point we can start thw whole procedure over again for . Eventually we can apply the equation , which is equal to if and otherwise.
Example: We try to calculate . Since and we find . Since both and are congruent modulo we have
This can be evaluated using equation (1) and we find
Title | calculating the Jacobi symbol |
---|---|
Canonical name | CalculatingTheJacobiSymbol |
Date of creation | 2013-03-22 14:55:05 |
Last modified on | 2013-03-22 14:55:05 |
Owner | mathwizard (128) |
Last modified by | mathwizard (128) |
Numerical id | 4 |
Author | mathwizard (128) |
Entry type | Algorithm |
Classification | msc 11A07 |
Classification | msc 11A15 |
Classification | msc 11Y99 |