#!/usr/bin/env python # coding: utf-8 # # Computing Jacobi symbols # # We use the function `jacobi` to compute the Jacobi symbols for the given numbers. # In[1]: from algorithms.modular import jacobi # In[3]: jacobi(7411, 9283, trace=True) # In[4]: jacobi(20964, 1987, trace=True) # In[5]: jacobi(1234567, 11111111, trace=True)