VinnyCee
- 486
- 0
Homework Statement
Prove that if n is an odd positive integer, then n^2\,\equiv\,1\,\left(mod\,8\right).
Homework Equations
Theorem:
a\,\equiv\,b\left(mod\,m\right)
if and only if
a\,mod\,m\,=\,b\,mod\,m
The Attempt at a Solution
Using the theorem above:
a\,=\,n^2
b\,=\,1,\,m\,=\,8
Then I have this:
n^2\,mod\,8\,=\,1\,mod\,8
What do I do next to show this for odd positive n?