(38G) Kronecker (Quadratic Character) Symbol - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (38G) Kronecker (Quadratic Character) Symbol (/thread-3438.html) |
(38G) Kronecker (Quadratic Character) Symbol - Gerald H - 03-20-2015 08:15 AM Edit: Updated definition of (0,-1) to be 1 rather than 0. The Kronecker symbol is a generalization of the Jacobi symbol, itself a generalization of the Legendre symbol. The Legendre symbol (a/b) returns 1 if a is a quadratic residue of b, -1 if not & 0 if the GCD(a,b)>1, b an odd prime. The Jacobi symbol allows b to be the product of odd primes & then returns results as for the product of the individual Legendre symbols of the factors of b. The Kronecker symbol allows b to be any integer. Input to the programme: { a , b } returns 1, -1 or 0. Remember: the Kronecker symbol does NOT indicate a quadratic residue if it returns 1. The individual prime factors may have Legendre symbols of -1 & -1, ie their product is 1, which the Kronecker symbol returns. Code: Ans►L1: |