Show that ## a^2\equiv b^2 \mod n ## need not imply that ## a\equiv b \mod n ##

  • Thread starter Thread starter Math100
  • Start date Start date
Click For Summary

Homework Help Overview

The discussion revolves around the mathematical statement that \( a^2 \equiv b^2 \mod n \) does not necessarily imply that \( a \equiv b \mod n \). Participants are tasked with providing examples or counterexamples to illustrate this concept.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • Some participants present counterexamples, specifically using \( a=3, b=4 \), and \( n=7 \), to demonstrate the non-implication. Others question the validity of the reasoning provided in these examples and discuss the nuances of logical implications in mathematical statements.

Discussion Status

The discussion includes multiple interpretations of the problem statement, with some participants agreeing on the appropriateness of the term "need not" while others debate the implications of the examples given. There is no explicit consensus, but various perspectives are being explored regarding the logical structure of the statements.

Contextual Notes

Participants note that the exercise aims to clarify the conditions under which the implication holds or does not hold, and there is an emphasis on the importance of logical reasoning in mathematical proofs.

Math100
Messages
823
Reaction score
234
Homework Statement
Give an example to show that ## a^2\equiv b^2 \mod n ## need not imply that ## a\equiv b \mod n ##.
Relevant Equations
None.
Disproof:

Here is a counterexample:
Let ## a=3, b=4 ## and ## n=7 ##.
Then ## a^2\equiv b^2 \mod n\implies 9\equiv 16 \mod 7 ##.
Thus ## 3\not\equiv 4 \mod 7 ##.
Therefore, ## a^2\equiv b^2 \mod n ## need not imply that ## a\equiv b \mod n ##.
 
  • Like
Likes   Reactions: fresh_42
Physics news on Phys.org
Math100 said:
Homework Statement:: Give an example to show that ## a^2\equiv b^2 \mod n ## need not imply that ## a\equiv b \mod n ##.
Relevant Equations:: None.

Disproof:

Here is a counterexample:
Let ## a=3, b=4 ## and ## n=7 ##.
Then ## a^2\equiv b^2 \mod n\implies 9\equiv 16 \mod 7 ##.
Thus ## 3\not\equiv 4 \mod 7 ##.
Therefore, ## a^2\equiv b^2 \mod n ##

Math100 said:
need does

Math100 said:
not imply that ## a\equiv b \mod n ##.
 
  • Like
Likes   Reactions: Math100
@Math100 The only correct lines in your "proof" are the first two: "Here is a counterexample: Let a=3, b=4, n=7." After that your reasoning is all wrong. I don't think this is the first time you are hearing this.

Homework exercises are opportunities to practice logical reasoning. Don't waste your time practicing illogical reasoning. Visit your teacher in office hours. Ask to go over the basics of logical reasoning. Hire a tutor if necessary.

@fresh_42 The word "need" in the problem statement is technically right because the truth value of ## a^2 \equiv b^2 \pmod{n} \rightarrow a \equiv b \pmod{n} ## depends on the values of a, b, and n. The word "need" is like the arrow's second shaft in ## a^2 \equiv b^2 \pmod{n} \Rightarrow a \equiv b \pmod{n} ##. The second shaft in the arrow means "for all values of all variables"
 
Prof B said:
The word "need" in the problem statement is technically right
Yes, but it sounds as if the implication would sometimes hold and sometimes not. But the implication itself does never hold, even in case the left and the right term are both true.
 
  • Like
Likes   Reactions: SammyS
## 3^2 \equiv 3^2 \pmod{7} \rightarrow 3 \equiv 3 \pmod{7} ## because every statement implies every true statement.
 
Yes, but ##\left(\forall \;a,b,n\in \mathbb{Z}\, : \,a^2\equiv b^2 \pmod n \Longrightarrow a\equiv b\pmod n\right)## is always a wrong statement. That's why the existence of a triple ##(a,b,n)## falsifies it.
 
Prof B said:
@fresh_42 The word "need" in the problem statement is technically right
I agree. The phrase "need not" is appropriate here.
fresh_42 said:
Yes, but ##\left(\forall \;a,b,n\in \mathbb{Z}\, : \,a^2\equiv b^2 \pmod n \Longrightarrow a\equiv b\pmod n\right)## is always a wrong statement. That's why the existence of a triple ##(a,b,n)## falsifies it.
@Prof B's example, ## 3^2 \equiv 3^2 \pmod{7} \rightarrow 3 \equiv 3 \pmod{7} ##, shows that the given statement is not always wrong.
 
We obviously read the exercise differently. The goal of this exercise is in my opinion to demonstrate that ##a^2=b^2 \Longrightarrow a=b## cannot be used. It is not helpful to claim: It can be used sometimes.

However, as long as spoken language is used, it is basically always possible to discuss it. That's why logic uses symbols.

Besides that, my main purpose for a correction was to signal that I read it carefully.

Edit: I once had a thesis (CS) in hand with exactly this error in it, only that it was inequalities that kind of doubled the error.
 
Last edited:
  • Like
Likes   Reactions: SammyS
fresh_42 said:
We obviously read the exercise differently. The goal of this exercise is in my opinion to demonstrate that ##a^2=b^2 \Longrightarrow a=b## cannot be used. It is not helpful to claim: It can be used sometimes.
As stated, the goal of the exercise was to provide an example showing that ##a^2 \equiv b^2 \mod n## need not imply that ##a \equiv b \mod n##.

@Math 100 has given a valid counterexample, and @Prof B has given a valid example for which the implication is true. Clearly the implication is sometimes true, but need not always be true.
 
  • #10
Math100 said:
YHomework Statement:: Give an example to show that ## a^2\equiv b^2 \mod n ## need not imply that ## a\equiv b \mod n ##.
Relevant Equations:: None.

Disproof:

Here is a counterexample:
Let ## a=3, b=4 ## and ## n=7 ##.
Then ## a^2\equiv b^2 \mod n\implies 9\equiv 16 \mod 7 ##.
Thus ## 3\not\equiv 4 \mod 7 ##.
Therefore, ## a^2\equiv b^2 \mod n ## need not imply that ## a\equiv b \mod n ##.
You have indeed got a counterexample, as asked. Why not just say so?

Here is a counterexample: ## a=3, b=4 ## and ## n=7 ##.
For ##3^2 = 4^2 (mod 7) = 2##
whereas ##3 mod 7 = 3 ≠ 4 mod 7 = 4##.

There is no thus and therefore about it.

You do not seem to be making much progress with this course, and are continually producing answers that have the sound of mathematical language but do not prove the conclusions - and you should easily be able to see they don't
 
Last edited:
  • Like
Likes   Reactions: Mark44
  • #11
I.e., in the original answer, change the direction of the first implication, and change the word "Thus" to "But".
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
3
Views
1K
Replies
27
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
17
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K