Number Theory Help: Homework Equation on Prime Generator

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
40 replies · 6K views
Yep that's the question exactly.

What is it exactly that you're trying to show that makes the claim untrue? I'll take it up with my prof if it indeed isn't a true claim.
 
Physics news on Phys.org
Kindayr said:
Yep that's the question exactly.

What is it exactly that you're trying to show that makes the claim untrue? I'll take it up with my prof if it indeed isn't a true claim.

well, the problem is, that just because we found a counter-example for ONE generator for ONE prime, doesn't mean that some OTHER generator might still have the desired property. in fact, since we have φ(p-1) generators, there is (on average) around a 1 in 3 chance that any given element of Zpx is a generator (it depends on "how composite" p-1 is).

and i think that the chances of every generator a having ap-1 ≡ 1 (mod p) AND ap-1 ≡ 1 (mod p2) are pretty low, indeed. but even for small p, the actual integers we are talking about are fairly large (looking at p = 29, the calculations are already in the millions, for the generator 2).

the only thing that occurs to me off the top of my head, is that if p is not 3, then p-1 is not 2, so a-1 = ap-2 is another generator, and perhaps it might be that if
ap-1≡ 1 mod p2, that maybe (ap-2)p-1 isn't. but i have not looked into this in any detail.
 
Ooo. Ooo. I was checking your numbers and scratching my head and I found a big hint carefully reading a Wikipedia article. If a^(p-1) ≡ 1 (mod p^2) and a is a generator, what about (a+p)? It's simpler than I thought.
 
Last edited:
Dick said:
Ooo. Ooo. I was checking your numbers and scratching my head and I found a big hint carefully reading a Wikipedia article. If a^(p-1) ≡ 1 (mod p^2) and a is a generator, what about (a+p)? It's simpler than I thought.

you have no idea what a mental laxative this is.

certainly [a] = [a+p], and (a+p)p-1 = ap-1+ p((p-1)ap-2 + p(...other stuff))

and p is co-prime to a, and certainly to p-1, so even if ap-1 = 1 + kp2,

(a+p)p-1 = 1 + kp2 + p((p-1)ap-2 + p(...other stuff))

= 1 + p2(k + (other stuff)) + p(p-1)ap-2

and although p divides p(p-1)ap-2, p2 does not.

i feel much better, now.
 
Deveno said:
you have no idea what a mental laxative this is.

certainly [a] = [a+p], and (a+p)p-1 = ap-1+ p((p-1)ap-2 + p(...other stuff))

and p is co-prime to a, and certainly to p-1, so even if ap-1 = 1 + kp2,

(a+p)p-1 = 1 + kp2 + p((p-1)ap-2 + p(...other stuff))

= 1 + p2(k + (other stuff)) + p(p-1)ap-2

and although p divides p(p-1)ap-2, p2 does not.

i feel much better, now.

What YOU don't know is how good I felt after you took over the thread. I don't consider myself much of a number theory guy. I was trying to figure out how to determine a number was a primitive root and reading http://en.wikipedia.org/wiki/Primitive_root_modulo_n when the stuff in the Cohen reference jumped out at me. Thanks for your efforts on this. I was clueless.
 
Yep, we had to use the fact that [itex]a+p\in\mathbb{Z}_{p^{2}}^{\times}[/itex] is a generator, hence showing that it is cyclic. My original question was the starting point to this proof.

I'm still confused on how exactly we showed that [itex]\gcd(k,p)=1[/itex].

Also, thank you so much for your help otherwise!
 
Kindayr said:
Yep, we had to use the fact that [itex]a+p\in\mathbb{Z}_{p^{2}}^{\times}[/itex] is a generator, hence showing that it is cyclic. My original question was the starting point to this proof.

I'm still confused on how exactly we showed that [itex]\gcd(k,p)=1[/itex].

Also, thank you so much for your help otherwise!

If gcd(k,p) is not 1 then p divides k. So kp is divisible by p^2. You should fill in the rest.
 
Dick said:
If gcd(k,p) is not 1 then p divides k. So kp is divisible by p^2. You should fill in the rest.

Then [itex]a^{p-1}\equiv 1 \mod (p^{2})[/itex]

Why is this a problem?
 
Kindayr said:
Then [itex]a^{p-1}\equiv 1 \mod (p^{2})[/itex]

Why is this a problem?

If that's true then cp or kp must be divisible by p^2. Deveno dug up an example where that's true. You don't see a problem with that?
 
Last edited:
I'm still confused as to where I'm supposed to go with all of this.

Let [itex]p[/itex] be an odd prime. For each [itex]d|p-1[/itex], let [itex]f(d)[/itex] be the amount of elements of [itex]\mathbb{Z}_{p}^{\times}[/itex] such that those elements have order [itex]d[/itex]. Clearly [tex]\sum_{d|p-1}f(d)=p-1.[/tex] Fix [itex]a<br /> \in\mathbb{Z}_{p}^{\times}[/itex] such that [itex]ord(a)=d[/itex], for fixed [itex]d|p-1[/itex]. Then [itex]G=\{1,a,a^{2},\dots,a^{d-1}\}[/itex] is a cyclic group of order [itex]d[/itex]. Note [itex]ord(a^{r})=d[/itex] iff [itex]\gcd (r,d)=1[/itex]. Hence there are up to [itex]\varphi(d)[/itex] many elements in [itex]\mathbb{Z}_{p}^{\times}[/itex] such that their order is [itex]d[/itex]. Note that [tex]\sum_{d|p-1}\varphi(d)=p-1.[/tex] So we have [tex](\star)\sum_{d|p-1}f(d)=p-1=\sum_{d|p-1}\varphi(d).[/tex]

Since either [itex]f(d)=0[/itex] or [itex]f(d)=\varphi(d)[/itex], it follows that [itex]f(d)\le \varphi(d)[/itex]. Hence, from [itex](\star)[/itex] we have that [itex]f(d)=\varphi(d)[/itex] for each [itex]d[/itex]. Since [itex]\varphi(n)>0[/itex] for any [itex]n\in\mathbb{Z}[/itex], it follows that [itex]\varphi (p-1)>0[/itex]. Hence, because [itex]p-1|p-1[/itex], we have that there exists at least one element of [itex]\mathbb{Z}_{p}^{\times}[/itex] such that it is a generator of [itex]\mathbb{Z}_{p}^{\times}[/itex].

Choose such a generator [itex]a\in\mathbb{Z}_{p}^{\times}[/itex]. By Fermat's Little Theorem, we have that [itex]a^{p-1}\equiv 1 \mod p[/itex]. Hence there exists [itex]k\in\mathbb{Z}[/itex] such that [itex]a^{p-1}=1+kp[/itex]. Since [itex]p[/itex] odd prime, it follows that [itex]p-1[/itex] is even and hence there exists [itex]m\in\mathbb{Z}[/itex] such that [itex]p-1=2m[/itex]. So we have [tex]kp=a^{p-1}-1=a^{2m}-1=(a^{m})^{2}-1=(a^{m}-1)(a^{m}+1).[/tex]

Since [itex]p[/itex] odd prime, it follows that either [itex]p|(a^{m}+1)[/itex] or [itex]p|(a^{m}-1)[/itex]. Suppose [itex]p|(a^{m}-1)[/itex], then [itex]a^{m}\equiv 1 \mod p[/itex]. But [itex]m<p-1[/itex] and [itex]ord(a)=p-1[/itex], a contradiction. Hence [itex]p\not{|}(a^{m}-1)[/itex], and thus [itex]p|(a^{m}+1)[/itex]. Suppose [itex]\gcd(k,p)=p[/itex], then [itex]p^{2}|(a^{m}+1)[/itex]. Hence [itex]a^{m}\equiv -1 \mod p^{2}[/itex]. Therefore [itex](a^{m})^{2}\equiv 1 \mod p^{2}[/itex] and hence [itex]a^{p-1} \equiv 1 \mod p^{2}[/itex].This is where I get stuck to continue.

OOOOH wait! If we choose [itex]a+p[/itex], then it is also a generator of [itex]\mathbb{Z}_{p}^{\times}[/itex] but its also a generator of [itex]\mathbb{Z}_{p^{2}}^{\times}[/itex]. Hence [itex](a+p)^{p-1}\not{\equiv} 1 \mod p^{2}[/itex]. Thus [itex](a+p)^{p-1}=1+kp[/itex] and [itex]p^{2}\not{|}(a^{m}+1)[/itex], hence [itex]\gcd (k,p)=1[/itex], as required. WOOT
 
Last edited:
Again, thanks all! This helped so much!