Jacobi Returns the Jacobi symbol. The Jacobi symbol is a generalization of the Legendre symbol. For any integer and any positive odd integer , the Jacobi symbol is defined as the product of the Legendre symbols corresponding to the prime factors of : where is the prime factorization of . The Legendre symbol is defined for all integers and all odd primes by Syntax jacobi(Integer, Integer) Description jacobi(Integer, Integer) Given two integers and , returns the Jacobi symbol . Related functions Legendre, Lucas Table of Contents Syntax Description Related functions