Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > University Math Help > Discrete Mathematics, Set Theory and Logic
Reply
 
Thread Tools Display Modes
  #1  
Old November 4th, 2009, 05:43 PM
Junior Member
 
Join Date: Oct 2009
Posts: 32
Country:
Thanks: 6
Thanked 0 Times in 0 Posts
kashifzaidi is on a distinguished road
Default congruent to modulo; the fundamentals

Show that if n is an odd positive integer, then
_
n^2 is congruent to 1 modulo 8, i.e., n^2 = 1(mod 8)
Reply With Quote
Advertisement
 
  #2  
Old November 4th, 2009, 05:48 PM
Bruno J.'s Avatar
Generous Contributor
 
Join Date: Jun 2009
Posts: 444
Country:
Thanks: 94
Thanked 154 Times in 137 Posts
Bruno J. has a spectacular aura aboutBruno J. has a spectacular aura about
Default

The odd residue classes modulo 8 are 1,3,5,7. Now you just need to check that 1^2\equiv 3^2\equiv 5^2 \equiv 7^2 \equiv 1 \mod 8.

(Because every odd integer can be written as 8k+1,8k+3,8k+5, or 8k+7.)
Reply With Quote
  #3  
Old November 4th, 2009, 06:07 PM
Senior Member
 
Join Date: Nov 2009
Location: Philadelphia, PA
Posts: 281
Country:
Thanks: 10
Thanked 73 Times in 68 Posts
Drexel28 will become famous soon enough
Default

Quote:
Originally Posted by kashifzaidi View Post
Show that if n is an odd positive integer, then
_
n^2 is congruent to 1 modulo 8, i.e., n^2 = 1(mod 8)
Alternatively, we know n=2k+1 for some k\in\mathbb{N} then \left(2k+1\right)^2-1=4k^2+4k+1-1=4k(k+1). And since either k or k+1 is even we see that 8|4k(k+1)=(2k+1)^2-1=n^2-1. Therefore n^2\equiv 1\text{ mod }8
Reply With Quote
  #4  
Old November 4th, 2009, 06:42 PM
Bruno J.'s Avatar
Generous Contributor
 
Join Date: Jun 2009
Posts: 444
Country:
Thanks: 94
Thanked 154 Times in 137 Posts
Bruno J. has a spectacular aura aboutBruno J. has a spectacular aura about
Default

This is good; it has the advantage of not relying on (general) principles of modular arithmetic. However, you would have a bit more trouble generalizing this type of argument; for instance proving that the square of every integer relatively prime to 12 is congruent to 1 modulo 12 might make the argument quite a lot less elegant.

Last edited by Bruno J.; November 4th, 2009 at 07:06 PM.
Reply With Quote
  #5  
Old November 4th, 2009, 06:53 PM
Senior Member
 
Join Date: Nov 2009
Location: Philadelphia, PA
Posts: 281
Country:
Thanks: 10
Thanked 73 Times in 68 Posts
Drexel28 will become famous soon enough
Default

Quote:
Originally Posted by Bruno J. View Post
This is good; it has the advantage of not relying on (general) principles of modular arithmetic. However, you would have a bit more trouble generalizing this type of argument; for instance proving that the square of every odd integer is congruent to 1 modulo 12 might make the argument quite a lot less elegant.
I agree this method lacks generality. But when questions are posed in such a way that the numbers "work out nice" I assume that is how it should be done.

Also, this question lends itself to induction.

Problem: Prove that if n is an odd natural number then n^2\equiv 1\text{ mod }8

Proof: We do this by weak induction.

Base case- Trivially 1^2=1\equiv 1\text{ mod }8

Inductive hypothesis- Assume that n^2\equiv 1\text{ mod }8

Inductive step- Using the hypothesis we see that 8|n^2-1, but the next odd integer is given by n+2 and (n+2)^2-1=n^2+4n+4-1=\left(n^2-1\right)+4(n+1). Since n is odd we know that n+1 is even therefore 8|4(n+1). So we may conclude that 8|n^2-1+4(n+1)=(n+2)^2-1\quad\blacksquare.
Reply With Quote
  #6  
Old November 4th, 2009, 07:08 PM
Bruno J.'s Avatar
Generous Contributor
 
Join Date: Jun 2009
Posts: 444
Country:
Thanks: 94
Thanked 154 Times in 137 Posts
Bruno J. has a spectacular aura aboutBruno J. has a spectacular aura about
Default

Good!

Fixed a mistake in my post. "Odd" is not what I meant!
Reply With Quote
Reply

Tags
congruent, mods, odd positve

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 07:50 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.