You can use a function called *discrete_log, *and I have shown you a script 
below.

m=5
c=9916780
n=20876441
m=Mod(m,n)
c=Mod(c,n)
print(discrete_log(c,m))

在 2020年5月13日星期三 UTC+8下午12:11:57,Madison Adams写道:
>
> Hi,
> So my goal is to find the variable y of this equation.
> Does sage math provide a function for Discrete Logarithm Problems?
>
> The equation is this: 9916780 = (5**y) mod 20876441.
> I also would like to know if there is an efficient way to do this in 
> Python 3.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/6577def5-f97f-4bde-bba8-232c904a70f2%40googlegroups.com.

Reply via email to