On 28/09/2024 01:53, Peter Fairbrother wrote:
Note: most posters here don't go for top-posting, preferring responses intermixed with the original quoted text. Just saying, because some
people will get cross with top posters!
Is the set e^2^n mod p (where e is a generator and element of the
multiplicative group mod p, p is prime and n=0 to p) equal to the set
of quadratic residues of the group?
No - you could just try out a couple of low p examples to see it doesn't work. E.g. p=7.
generators:Â Â Â Â 3 and 5
qres:Â Â Â Â Â Â Â Â Â Â 1,2,4
e:Â Â Â Â Â Â Â Â Â Â Â Â Â 3Â Â Â Â Â Â 5
             ---    ---
e^(2^0)Â Â Â Â Â Â Â Â 3Â Â Â Â Â Â 5
e^(2^1)Â Â Â Â Â Â Â Â 2Â Â Â Â Â Â 4
e^(2^2)Â Â Â Â Â Â Â Â 4Â Â Â Â Â Â 2
e^(2^3)Â Â Â Â Â Â Â Â 2Â Â Â Â Â Â 4
e^(2^4)Â Â Â Â Â Â Â Â 4Â Â Â Â Â Â 2
...
both are missing qr: 1
(Note we can calculate g^(2^n) = g^(2*2^(n-1)) = g^(2^(n-1))^2
iteratively by squaring, taking mod p after each iteration.
On 28/09/2024 04:48, Mike Terry wrote:
On 28/09/2024 01:53, Peter Fairbrother wrote:
Note: most posters here don't go for top-posting, preferring responses intermixed with the
original quoted text. Just saying, because some people will get cross with top posters!
I shall beat myself up immediately.
[...]
Is the set e^2^n mod p (where e is a generator and element of the multiplicative group mod p, p
is prime and n=0 to p) equal to the set of quadratic residues of the group?
No - you could just try out a couple of low p examples to see it doesn't work. E.g. p=7.
generators: 3 and 5
qres: 1,2,4
e: 3 5
--- ---
e^(2^0) 3 5
e^(2^1) 2 4
e^(2^2) 4 2
e^(2^3) 2 4
e^(2^4) 4 2
...
both are missing qr: 1
Ok, thanks for the help - I should have asked:
Is the set S = g^(2^n) mod p (where g is any generator / element of the multiplicative group mod p,
p is prime and n=1 to p) plus the element 1 equal to the set QR of quadratic residues of the
aforementioned group?
(Note we can calculate g^(2^n) = g^(2*2^(n-1)) = g^(2^(n-1))^2 iteratively by squaring, taking mod
p after each iteration.
Yes, so we would never get a non-QR in S.
But do we get all the QRs?
A proof?
Is the set e^2^n mod p (where e is a generator and element of the multiplicative group mod p, p is prime and n=0 to p) equal to the set of quadratic residues of the group?
Thanks
Peter Fairbrother
That cam out wrong, should be e^(2^n) mod p maybe?
e to the power (2 ^n) mod p
I don't know how to do multi-level superscripts in newsgroups, sorry.
Peter F
On 28/09/2024 01:31, Peter Fairbrother wrote:
Is the set e^2^n mod p (where e is a generator and element of the multiplicative group mod p, p is
prime and n=0 to p) equal to the set of quadratic residues of the group?
Well if the conjecture fails, a counter-example suffices. But like I
said, I'm not sure what you're asking. It should be apparent from
tests that some (p,g) values work and some do not.
Mike Terry <news.dead.person.stones@darjeeling.plus.com> writes:
Well if the conjecture fails, a counter-example suffices. But like I
said, I'm not sure what you're asking. It should be apparent from
tests that some (p,g) values work and some do not.
Mod(3,17) is a generator, but its 2^n-th powers hit Mod(1,17) really
quickly.
Phil
On 09/10/2024 17:21, Phil Carmody wrote:
Mike Terry <news.dead.person.stones@darjeeling.plus.com> writes:
Well if the conjecture fails, a counter-example suffices. But like I
said, I'm not sure what you're asking. It should be apparent from
tests that some (p,g) values work and some do not.
Mod(3,17) is a generator, but its 2^n-th powers hit Mod(1,17) really
quickly.
Also p=13. Well, the powers don't hit 1, but quickly cycle with a
period of 2. Cycling "too soon" is the general way different primes
fail, rather than specifically hitting 1.
Just by inspection (mucking about in an Excel spreadsheet) it seems
most p won't work due to 2^n [mod p-1] quickly hitting a cycle, but a
few p DO work, so there's an interesting question as to why.
Working p: (2), 3, 5, 7, 11, 23, 59, ...
(Then again I might have mucked up the spreadsheet or just misrecorded something, so don't take that as gospel!)
Mike Terry <news.dead.person.stones@darjeeling.plus.com> writes:
On 09/10/2024 17:21, Phil Carmody wrote:
Mod(3,17) is a generator, but its 2^n-th powers hit Mod(1,17) really
quickly.
Also p=13. Well, the powers don't hit 1, but quickly cycle with a
period of 2. Cycling "too soon" is the general way different primes
fail, rather than specifically hitting 1.
Yeah, I chose 17 because it is a Fermat prime (of the form 2^n+1),
and I knew 2^n modulo EulerPhi(17)=16 would go 1, 2, 4, 8, 0, ..
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 497 |
Nodes: | 16 (2 / 14) |
Uptime: | 26:51:34 |
Calls: | 9,796 |
Calls today: | 15 |
Files: | 13,749 |
Messages: | 6,188,351 |