Was surprised to discover that considering x2 - Dy2 = F mod N, is also the path to a simpler form for my BQD Iterator.
Key is the factorization available from:
x2 - Dy2 = x2 - m2y2 = (x-my)(x+my) = F mod N
Where, for some residue r, x + my = r mod N, and x - my = Fr-1 mod N
And I can iterate to get: x + Dy + m(x + y) = r' mod N
Then x + my + Dy + mx = x + my + m(my+x) = r + mr = r(m+1) = r' mod N
And have the result then: r' = r(m+1) mod N
Then with k iterations, have for kth iteration: rk = r(m+1)k mod N
So can use r to iterate modularly with a very simple result.
Where intrigues me is VASTLY simpler than what can get with the explicit form.
James Harris
No comments:
Post a Comment