If x is an odd number, how to prove $x^2=8y+1$?

843 Views Asked by At

I tried to let $x=2k+1$ but it ended up proving $k^2+k=2y$ for some $k$ and $y$. What is the correct solution?

4

There are 4 best solutions below

0
On BEST ANSWER

Yet another approach, an odd number $x$ is congruent to 1 or 3 mod 4, so try the two cases $x = 4 k + 1$ and $x = 4 k + 3$ and compute $x^2$.

2
On

HINT

Assume that $x=2k+1$ then $$x^2 = 4k(k+1)+1$$

0
On

Hint:  use that $\,x^2-1=(x-1)(x+1)$, and one of two consecutive evens is divisible by $\,4\,$.

2
On

If $x$ is odd, then it is congruent to $1$, $3$, $5$ or $7$, modulo $8$. Since $$ 1^2\equiv 1,\quad 3^2\equiv 1,\quad 5^2\equiv 1,\quad 7^2\equiv1\pmod{8} $$ you're done.

For the “hard” approach, consider that $k(k+1)$ is even.