>From running this script do you get the value y = 17? I used a wolfram calculator just to be sure.
On Wednesday, May 13, 2020 at 6:00:37 AM UTC-4, GZ D wrote: > > 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/0f9499de-5cc7-40b9-9260-59d315502658%40googlegroups.com.