Prove if a=b(mod n) then a^2=b^2(mod n)

  • Thread starter Thread starter privyet
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on proving the mathematical statement that if \( a \equiv b \mod n \), then \( a^2 \equiv b^2 \mod n \) for integers \( a, b, n \) where \( n \geq 2 \). The proof involves recognizing that if \( n \) divides \( a - b \), it also divides \( a^2 - b^2 \) through the factorization \( a^2 - b^2 = (a + b)(a - b) \). The final proof demonstrates that \( a^2 \equiv b^2 \mod n \) holds true by expressing \( a^2 \) in terms of \( n \) and confirming the divisibility.

PREREQUISITES
  • Understanding of modular arithmetic
  • Familiarity with integer factorization
  • Basic knowledge of mathematical proofs
  • Ability to manipulate algebraic expressions
NEXT STEPS
  • Study the properties of modular arithmetic in detail
  • Learn about integer factorization techniques
  • Explore more complex proofs in 'Mathematical Proofs: A Transition to Advanced Mathematics'
  • Practice problems involving congruences and divisibility
USEFUL FOR

Students studying advanced mathematics, particularly those focusing on proofs and modular arithmetic, as well as educators looking for examples of mathematical reasoning.

privyet
Messages
12
Reaction score
1

Homework Statement



This is a question from the book I'm studying called 'Mathematical Proofs: A transition to advanced mathematics'

Homework Equations



Let a, b, n be integers, with n≥2. Prove that if a\equivb(mod n), then a2\equivb2(mod n).

The Attempt at a Solution



Following the examples I assumed that I'd start by stating that since a\equivb(mod n), then a-b=nx... but from this point I'm stuck.

Any help much appreciated.
 
Last edited:
Physics news on Phys.org
privyet said:

Homework Statement



This is a question from the book I'm studying called 'Mathematical Proofs: A transition to advanced mathematics'

Homework Equations



Let a, b, n be integers, with n≥2. Prove that if a\equivb(mod n), then a2\equivb2(mod n).

The Attempt at a Solution



Following the examples I assumed that I'd start by stating that since a\equivb(mod n), then a-b=nx...

In other words, n divides a-b. Does n divide a2-b2?
 
Yeah. I know its simple but I just don't know how to think about it.
 
privyet said:
Yeah. I know its simple but I just don't know how to think about it.

Are you saying you still don't know how to think about it after my hint? Can you answer my question in the hint?
 
privyet said:
Yeah. I know its simple but I just don't know how to think about it.
LCKurtz has probably provided the most direct way to think about it if you happen to know the well known factorization of the expression a2-b2, but alternatively you could think of it this way:

You have already stated that a-b=nx, or a=nx+b, for some integer x.

Can you find an integer, say y, such that a2=ny+b2 ?
 
I was saying that I could see that it looks pretty obvious that if n divides a-b, it will divide a2-b2, but that I didn't know how to prove it.

Using oay's hint about factorisation I've got a2-b2=(a+b)(a-b) and since n divides a-b, n therefore divides a2-b2 but this is looking very different to the examples in the book.

OK, after a pause to try again I think I've got it (with the help of oay's other hint):

Assume n divides a-b, then a=nx+b. Therefore a2=(nx+b)2=n2x2+2bnx+b2=n(nx2+2bx)+b2. Since a2=n(nx2+2bx)+b2 and nx2+2bx is an integer, a2-b2=n(nx2+2bx). Therefore a2\equivb2(mod n).

Is that right?
 
privyet said:
Is that right?
Spot on! :smile:
 
Great! Thank you both for your help.
 

Similar threads

Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
1
Views
1K
Replies
6
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 23 ·
Replies
23
Views
5K
Replies
1
Views
1K
  • · Replies 15 ·
Replies
15
Views
2K
Replies
5
Views
13K
  • · Replies 4 ·
Replies
4
Views
5K