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

  • Thread starter Math100
  • Start date
In summary: You have indeed got a counterexample, as asked.In summary, the conversation discusses a disproof of the statement that ##a^2 \equiv b^2 \mod n## implies ##a \equiv b \mod n##. The counterexample provided is ##a=3, b=4##, and ##n=7##, where ##a^2 \equiv b^2 \mod n## holds but ##a \equiv b \mod n## does not. There is a discussion about the correct usage of the words "need not" in the statement and examples given to show that the implication is sometimes true but not always. Finally, there is a suggestion for the person to seek help in improving their logical reasoning skills.
  • #1
Math100
802
222
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 fresh_42
Physics news on Phys.org
  • #2
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 Math100
  • #3
@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"
 
  • #4
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 SammyS
  • #5
## 3^2 \equiv 3^2 \pmod{7} \rightarrow 3 \equiv 3 \pmod{7} ## because every statement implies every true statement.
 
  • #6
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.
 
  • #7
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.
 
  • #8
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 SammyS
  • #9
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 Mark44
  • #11
I.e., in the original answer, change the direction of the first implication, and change the word "Thus" to "But".
 

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

What is the meaning of "a^2≡b^2 (mod n)"?

The notation "a^2≡b^2 (mod n)" means that the remainders of a^2 and b^2 when divided by n are equal.

Can you give an example where a^2≡b^2 (mod n) but a≠b (mod n)?

Yes, for instance, let a=3, b=7, and n=4. Then a^2=9 and b^2=49, both of which have a remainder of 1 when divided by n. Therefore, a^2≡b^2 (mod n). However, a=3 and b=7 have different remainders (3 and 3, respectively) when divided by n, so a≠b (mod n).

What is the significance of this property in number theory?

This property is important in number theory because it allows us to analyze the relationships between numbers and their remainders when divided by a certain number. It also helps us understand the properties of modular arithmetic and its applications in cryptography and other fields.

Is it possible for a^2≡b^2 (mod n) to imply a≡b (mod n)?

Yes, it is possible. For example, if a and b are both multiples of n, then a^2 and b^2 will also be multiples of n, and thus a^2≡b^2 (mod n) will imply a≡b (mod n).

How can we prove that a^2≡b^2 (mod n) does not always imply a≡b (mod n)?

We can prove this by providing a counterexample, as shown in question 2. We can also use a proof by contradiction, assuming that a^2≡b^2 (mod n) does imply a≡b (mod n) and then showing that this leads to a contradiction. Alternatively, we can use a proof by construction, where we deliberately choose values for a, b, and n that satisfy a^2≡b^2 (mod n) but not a≡b (mod n).

Back
Top