jacobi symbol calculator site:math.stackexchange.com - Search