Forum: Miscellaneous Math
2020-06-18, 11:03
|
Replies: 4
Views: 1,223
Sorry about that. Here you go-
The function...
Sorry about that. Here you go-
The function ai+1 = (ai^2 + 1) (mod n) is typical of the kind used in Pollard's Rho Method. The sequence is divided into two parts. The 'tail' and the 'cycle'. But...
|
Forum: Miscellaneous Math
2020-06-17, 21:11
|
Replies: 4
Views: 1,223
Some Notes on Pollard's Rho
I have been examining the output from Pollard's method for different seeds and an interesting picture has emerged which you might have use for. Comments welcome as always.
...
|
Forum: Lounge
2020-06-12, 21:54
|
Replies: 10
Views: 1,436
|
Forum: Lounge
2020-06-12, 21:28
|
Replies: 10
Views: 1,436
|
Forum: Lounge
2020-06-12, 21:23
|
Replies: 10
Views: 1,436
|
Forum: Lounge
2020-06-12, 19:04
|
Replies: 10
Views: 1,436
|
Forum: Miscellaneous Math
2020-05-20, 20:33
|
Replies: 31
Views: 9,439
|
Forum: Other Mathematical Topics
2020-02-02, 20:24
|
Replies: 2
Views: 3,008
Yes, I noticed that it works for odd sums as...
Yes, I noticed that it works for odd sums as well.
Yes, this would be equivalent to writing v = (a - a-1c)/2 as v = (a - a-1R)/2 giving a distance of R between q1 and q2
Many thanks for...
|
Forum: Other Mathematical Topics
2020-02-01, 18:44
|
Replies: 2
Views: 3,008
Creating Consecutive Quadratic Residues
While working on another problem I stumbled across this if anyone has a use for it.
To create all consecutive quadratic residues modulo p, p an odd prime.
For all a < p find a-1(mod p)
If (a...
|
Forum: Computer Science & Computational Number Theory
2019-12-23, 22:21
|
Replies: 28
Views: 6,876
|
Forum: Computer Science & Computational Number Theory
2019-10-26, 19:21
|
Replies: 2
Views: 2,453
Yes but at step 2 the task is reduced to a...
Yes but at step 2 the task is reduced to a smaller pair of numbers, to which the extended Euclidean algorithm can be applied. This is an immediate saving in processor time. Step 2 = Find r -1 mod a...
|
Forum: Computer Science & Computational Number Theory
2019-10-25, 19:48
|
Replies: 2
Views: 2,453
Calculating inverses quickly.
Do you think this would be faster than the extended Euclidean Algorithm for finding inverses?
For a given a find a-1 (mod m)
1. Let m = r mod a
2. Find r -1 mod a
3. Let x = a - r -1 (ie, x =...
|
Forum: Computer Science & Computational Number Theory
2019-08-05, 20:02
|
Replies: 45
Views: 9,478
Yes, it is hard to see how Brent's ideas can...
Yes, it is hard to see how Brent's ideas can apply. At present I can't see how I can find a way to make it leap forward, ie shorten the cycle. I'll work some more on it as I understand it better now...
|
Forum: Computer Science & Computational Number Theory
2019-08-04, 10:26
|
Replies: 45
Views: 9,478
Many thanks for this. I had been looking for...
Many thanks for this. I had been looking for something similar.
I have found, with this version, that there is no lead in (no tail). The cycle begins at the start. I can see this because if a factor...
|
Forum: Computer Science & Computational Number Theory
2019-08-03, 16:18
|
Replies: 45
Views: 9,478
Seemingly all this is quite general and...
Seemingly all this is quite general and independent of z2
That is, if we choose any R in the period [1, n - 1] and let Q = n - R then Q = -R (mod n) and therefore mod p and mod q
That is, if R...
|
Forum: Computer Science & Computational Number Theory
2019-07-21, 21:10
|
Replies: 45
Views: 9,478
|
Forum: PARI/GP
2019-07-21, 20:47
|
Replies: 0
Views: 1,730
Pari link
Don't know if this Pari documentation has been posted but it is very extensive-
https://buildmedia.readthedocs.org/media/pdf/cypari2/latest/cypari2.pdf
|
Forum: Computer Science & Computational Number Theory
2019-07-21, 20:28
|
Replies: 45
Views: 9,478
|
Forum: Computer Science & Computational Number Theory
2019-07-21, 19:27
|
Replies: 45
Views: 9,478
|
Forum: Computer Science & Computational Number Theory
2019-07-21, 13:26
|
Replies: 45
Views: 9,478
|
Forum: Computer Science & Computational Number Theory
2019-07-21, 10:25
|
Replies: 45
Views: 9,478
|
Forum: Computer Science & Computational Number Theory
2019-07-21, 10:09
|
Replies: 45
Views: 9,478
|
Forum: Computer Science & Computational Number Theory
2019-07-21, 09:55
|
Replies: 45
Views: 9,478
|
Forum: Computer Science & Computational Number Theory
2019-07-20, 10:21
|
Replies: 45
Views: 9,478
|
Forum: Computer Science & Computational Number Theory
2019-07-19, 21:52
|
Replies: 45
Views: 9,478
I take it that 'Ending index' is equivalent to...
I take it that 'Ending index' is equivalent to the number of loop iterations in mine? If that is the case mine seems to be faster in almost all instances.
p 3228341 q 4941967.....140 iterations
p...
|