Jacobi symbol