Pollard's rho algorithm for logarithms: Difference between revisions

Content deleted Content added
Line 46:
:## ''r'' &larr; ''b<sub>i</sub>'' - ''b<sub>2i</sub>''
:## If r = 0 return failure
:## x &larr; ''r<sup> -1 </sup>''(''a<sub>2i</sub>'' - ''a<sub>i</sub>'') mod ''p''
:## return x
:# If ''x<sub>i</sub>'' &ne; ''x<sub>2i</sub>'' then ''i'' &larr; ''i+1'', and go to step 2.