Content deleted Content added
→Algorithm: reduce index of Q by 1 in the first phase |
|||
Line 16:
'''The algorithm:'''
Initialize <math>i=0,P_0=\lfloor\sqrt{kN}\rfloor,
Repeat
<math>i=i+1,b_i=\left\lfloor\frac{P_0+P_{i-1}}{
until <math>
Start the second phase (reverse cycle).
Initialize <math>b_0=\left\lfloor\frac{P_0-P_i}{\sqrt{
Set <math> i=0</math> and <math> Q_0=\frac{kN-P_0^2}{Q_{-1}}</math>, where <math>P_0</math> is the recently calculated value of <math>P_0</math>.
|