Yes, I get the answer y = 17. 在 2020年5月13日星期三 UTC+8下午9:04:02,Madison Adams写道: > > 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/05803239-9048-48c3-b33d-caa2f11be3a6%40googlegroups.com.