First time here? Check out the FAQ!
answered 2022-02-22 23:05:55 +0100
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