More Proofs: Prove that if n is an odd positive int., then n^2 = 1(mod 8)

In summary: Thus, k^2\,+\,k is always even, and therefore, 2p must also be even. Since 2 is a factor of 2p, it follows that 8 is also a factor of 2p. Therefore, 4k^2+4k+1 is congruent to 1 mod 8, proving that n^2 is congruent to 1 mod 8 for any odd positive integer n.
  • #1
VinnyCee
489
0

Homework Statement



Prove that if n is an odd positive integer, then [itex]n^2\,\equiv\,1\,\left(mod\,8\right)[/itex].

Homework Equations



Theorem:

[tex]a\,\equiv\,b\left(mod\,m\right)[/tex]

if and only if

[tex]a\,mod\,m\,=\,b\,mod\,m[/tex]

The Attempt at a Solution



Using the theorem above:

[tex]a\,=\,n^2[/tex]

[tex]b\,=\,1,\,m\,=\,8[/tex]

Then I have this:

[tex]n^2\,mod\,8\,=\,1\,mod\,8[/tex]

What do I do next to show this for odd positive n?
 
Physics news on Phys.org
  • #2
This is hardly "beyond calculus". Anyways, you can represent odd numbers with 2k + 1, where k is a natural number (or zero). Then use eg. proof by induction.
 
  • #3
You need to prove that [itex] (2k+1)^2=8p+1 [/itex] for some "k" and "p" in [itex] \mathbb{Z} [/itex].
 
  • #4
How would I go about proving that?

[tex]4\,k^2\,+\,4\,k\,+\,1\,=\,8\,p\,+\,1[/tex]

[tex]k^2\,+\,k\,=\,2\,p[/tex]

Now what?
 
  • #5
If n is an odd number, then n can be expressed by (2k + 1) where k is any whole number. Right?
So, we have:
n2 = (2k + 1)2 = 4k2 + 4k + 1
= 4 (k2 + k) + 1 = 4k(k + 1) + 1
What can you say about the product of 2 successive integers? Hint: Is that divisible by 2?
So, is the product 4k(k + 1) divisible by 8?
Can you go from here? :)
 
  • #6
VinnyCee said:
How would I go about proving that?

[tex]4\,k^2\,+\,4\,k\,+\,1\,=\,8\,p\,+\,1[/tex]

[tex]k^2\,+\,k\,=\,2\,p[/tex]

Now what?

p is any integer, so k^2+k=2p is equivalent to (ie, exactly the same question as) whether k^2+k is even. Well, is it?
 
  • #7
[itex]k^2\,+\,k[/itex] is always even. If k were odd, adding an odd integer to another odd one produces an even integer. If k were even, then the whole expression is even as well because adding two even integers always results in an even integer.
 

1. What does it mean for n to be an odd positive integer?

An odd positive integer is a whole number that is greater than zero and cannot be divided evenly by 2. Examples include 1, 3, 5, 7, 9, etc.

2. How do you prove that n^2 = 1 (mod 8) for all odd positive integers?

To prove this statement, we can use mathematical induction. First, we can show that the statement is true for n=1, since 1^2 = 1 (mod 8). Then, we can assume that the statement is true for some arbitrary odd positive integer k. Using this assumption, we can show that the statement is also true for k+2, as (k+2)^2 = k^2 + 4k + 4 = (k^2 + 1) + 3(k+1) = 1(mod 8). Therefore, the statement holds for all odd positive integers.

3. How does the concept of modular arithmetic relate to this proof?

Modular arithmetic is a mathematical tool used to study numbers that repeat in a regular pattern. In this proof, we are using modular arithmetic to show that for odd positive integers, the square of the number will always have a remainder of 1 when divided by 8.

4. Can you provide an example to illustrate this proof?

Sure, let's take the odd positive integer 7. When we square 7, we get 49. When we divide 49 by 8, we get a remainder of 1. This follows the pattern of the statement n^2 = 1 (mod 8).

5. Are there any exceptions to this proof?

No, there are no exceptions to this proof. For all odd positive integers, the statement n^2 = 1 (mod 8) holds true.

Similar threads

  • Calculus and Beyond Homework Help
Replies
15
Views
2K
  • Calculus and Beyond Homework Help
Replies
11
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
511
  • Calculus and Beyond Homework Help
Replies
3
Views
545
  • Calculus and Beyond Homework Help
Replies
1
Views
574
  • Calculus and Beyond Homework Help
Replies
4
Views
954
  • Precalculus Mathematics Homework Help
Replies
2
Views
692
Back
Top