I'm wondering if someone can help me out...
In reviewing the answer provided; I'm not sure I follow the logic...
In the answer on page 155, it states -
"Therefore no matter what integer n is, k will equal 4 x even x odd, plus 1. In other words, k will equal a multiple of 8 plus 1."
I understand everything until the first sentence, but I'm not following how you can lead from the first sentence to the second, where it states "In other words, k will equal a multiple of 8 plus 1."
Here is the complete question, and solution...
Q. If k=2n-1, where n is an integer, what is th3 remainder of (k^2) / 8?
Solution:
Since k=2n-1, we can represent k^2 as:
k^2=(2n-1)^2=4n^2-4n+1
We can factor this expression as follows:
k=4n(n-1)+1
If n is even, then n-1 is odd, while if n is odd, then n-1 is even. Therefore no matter what integer n is, k will equal 4 X even X odd, plus 1. In other words, k will equal a multiple of 8, plus 1. Therefore, the remainder is 1.
NOTE: I've bolded what I don't understand.