I think SageMath does it right: jacobi_symbol(5, 2) -> ValueError: p must be odd legendre_symbol(5, 2) -> ValueError: p must be odd kronecker_symbol(5, 2) -1 There is very little reason to use expensive closed source software when it comes to number theory. Peter