If i use p=409 y h=18, the algorithm works. Why if i use h=17 i have this error?
El domingo, 20 de abril de 2014 22:36:24 UTC-5, Jan Medina escribió: > > I have this error when i runnig this algorithm > > def Trujillo_Gomez(p,h): > if is_prime(p): > F.<x>=GF(p^(h-1),name='x') > g=random_primitive(p,h-1); > s=p^(h-1) > for i in range(p): > a1=discrete_log(g+i,g) > a2=a1-i > a3=s*a1+i > A2=A2+[ZZ(mod(a1,(p*(s-1))))] > aP=Permutations(A2).random_element() > return aP > else: > print 'P debe ser primo' > > for p=409 y h=17. > > Is it a bug? > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
