Log in to edit a copy.
Download.
Other published documents...
็HW5_2
186 days ago by PuririnBlue
p= 7 R=IntegerModRing(p) q = p-1 for i in srange(1,p): lst =[ ] for j in srange(1,p): a = R(i^j) if a == 1: lst.append(j) if lst[0] == q : print i
3 5
3 5