Added formula for Jacobi symbol.