Is p Prime if gcd(a, p) = 1 or p Divides a?

  • Thread starter Thread starter AlexChandler
  • Start date Start date
  • Tags Tags
    Gcd Primes Proof
Click For Summary

Homework Help Overview

The discussion revolves around proving that a prime number \( p \) satisfies the condition that for any integer \( a \), either \( \gcd(a, p) = 1 \) or \( p \) divides \( a \). Participants are exploring the implications of this statement and the logical structure of the proof.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the validity of using specific examples to demonstrate contradictions in the proof. There is a focus on the necessity of generalizing the argument to apply to all integers \( a \) rather than relying on individual cases.

Discussion Status

The conversation is ongoing, with participants providing feedback on each other's reasoning. Some suggest alternative approaches to proving the statement by contradiction, while others question the sufficiency of counterexamples in establishing a general proof.

Contextual Notes

Participants are grappling with the logical structure of proofs involving "for all" versus "there exists" statements, highlighting the nuances in mathematical reasoning required for this problem.

AlexChandler
Messages
281
Reaction score
0

Homework Statement



prove that p is prime iff for any integer "a" either (a,p)=1 or p divides a

(where (a,p) denotes the gcd of a and p)

Homework Equations



(a,b)= the greatest common factor of a and b

The Attempt at a Solution



I had no trouble with proving the forward direction of the statement. But for the backward direction, here is what I have:

for any integer "a", let either (a,p)=1 or p divide a
Now assume that p is not prime.
The following must hold true:
either (6,4)=1 or 4 divides 6
Since both of these statements are false, this is a contradiction.
Therefore p must be prime.
Q.E.D.

It seems okay to me to use an example at this point to arrive at the contradiction. Is this a legitimate way to prove the theorem?
 
Physics news on Phys.org
AlexChandler said:
It seems okay to me to use an example at this point to arrive at the contradiction. Is this a legitimate way to prove the theorem?

No. You want to show this works for all (a,p). You're on the right track wanting to show by contradiction, but try this instead:

Case 1: Let (a,p) = 1, p does not divide a and assume to contrary that p is not prime. So p = xy, x,y > 1. How can we get a contradiction?

Case 2: Let (a,p) != 1, p divide a and assume to contrary that p is not prime. So p = xy, x,y > 1. How can we get a contradiction?
 
Ok thank you. That seems a much better way to prove this. However, I am still not seeing the logical flaw in the argument I used. If you let "(a,p)=1 or p divide a", and assume that p is not prime, isn't an example of a contradiction enough to conclude that the assumption was false?
 
I see what you're talking about now.

This unfortunately won't work. You've shown that you obtain a contradiction only for that example (which is good). However, assuming that we did it your way, how do we know that there don't exist examples where there's not a contradiction and the example satisfies all three statements?

By keeping things general, you'll be able to show that you'll obtain a contradiction for every time you choose p to not be prime.
 
AlexChandler said:
Ok thank you. That seems a much better way to prove this. However, I am still not seeing the logical flaw in the argument I used. If you let "(a,p)=1 or p divide a", and assume that p is not prime, isn't an example of a contradiction enough to conclude that the assumption was false?

I think this only works when you're making a statement about all non-primes having those properties. That is, your counterexample must be against a statement that says "for all non-prime p, (a,p)=1 or p divides a". However, in your statement, you're only assuming that there might exist one such p that isn't prime with those properties, and so a counter example would not show that the statement is wrong (just that the p you chose doesn't fit the description; there are still infinitely many p to choose from that aren't prime that might fit your requirements).

Against a "for all" statement, such as for all f that are continuous at any number of points, f is differentiable at those points, you can provide a counter example (f(x) = |x| works here) and that takes care of the problem.
However, for a "there exists" statement, such as "\exists \delta \; s.t.\; \forall \varepsilon > 0, |x-x_0| < \delta \implies |f(x)-L|<\varepsilon
If you just pick \delta = 100, it probably wouldn't work for the implication, but would that disprove that limit, or would there still be a possibility that \delta = 99 would work? If not, would 98? 97? etc
 

Similar threads

Replies
5
Views
2K
Replies
12
Views
2K
Replies
15
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K