Ask Your Question

Revision history [back]

You asked for the discrete logarithm in the ring of integers $\mathbb{Z}$. You meant the following:

sage: discrete_log(Mod(138,401), Mod(3,401), 401-1)
318