The Student Room Group

Reply 1

Proof by exhaustive enumeration is what you've done.

Reply 2

Thanks for this. And I'm glad that I've done it right - but in fact I don't understand why I've done it right :frown:. I fully appreciate the pattern continues but why is proving that the residues {0, 1, 2, 3, 4, 5, 6, 7} all square to give residues {0, 1, 4} sufficient? How could I be sure that 5389^2 wouldn't give a different remainder

Sorry as I know it's probably a ridiculous question

Reply 3

deepthoughts44
Hi

I know this is obvious but how do you actually PROVE that all squares are congruent to either 0, 1 or 4 mod 8

i see if you write them out like
0^2 = 0 mod 8
1^2 = 1 mod 8
2^2 = 4 mod 8
....1
0
1
4
1

But how do you actually prove it :confused:
Many thanks!

This is a perfectly valid proof, if you want to tighten it up a bit just say that all numbers greater than 7 are congruent to one of {0,1,2,3,5,6,7} and therefore the squares of this number mod 8 will be congruent to a square of {0,1,2,3,4,5,6,7} mod 8.

eg 999^2 = -1^2 (mod8) = 7^2 (mod 8) = 1 (mod 8)

Reply 4

deepthoughts44
I fully appreciate the pattern continues but why is proving that the residues {0, 1, 2, 3, 4, 5, 6, 7} all square to give residues {0, 1, 4} sufficient? How could I be sure that 5389^2 wouldn't give a different remainder


Any integer must be congruent to 0,1,2,3,4,5,6 or 7 (mod 8). Thus its square must be congruent to 0,1,4,9,16,25,36 or 49 (mod 8), i.e. 0,1,4,1,0,1,4 or 1 (mod 8).

Reply 5

miml
This is a perfectly valid proof, if you want to tighten it up a bit just say that all numbers greater than 7 are congruent to one of {0,1,2,3,5,6,7} and therefore the squares of this number mod 8 will be congruent to a square of {0,1,2,3,4,5,6,7} mod 8.

eg 999^2 = -1^2 (mod8) = 7^2 (mod 8) = 1 (mod 8)



Many thanks for this and especially your example! I see what you mean now!!!

Reply 6

thank you everyone :biggrin:

Reply 7

i refuse to believe you're still doing your A-levels (makes me feel better if i do that)

Reply 8

So let us take two numbers a and a + 1. When you square them, the difference between their squares is 2a + 1. (a^2 + 2a + 1 - a^2).

We observe that 0^2 is congruent to 0 mod 8.

1^2 is congruent to 1 mod 8, adding 2(0) + 1 = 1, which is congruent to 1 mod 8.

2^2 is congruent to 4 mod 8, adding 2(1) + 1 = 3, which is congruent to 3 mod 8.

3^2 is congruent to 1 mod 8, adding 2(2) + 1 = 5, which is congruent to 5 mod 8.

4^2 is congruent to 0 mod 8, adding 2(3) + 1 = 7, which is congruent to 7 mod 8.

5^2 is congruent to 1 mod 8, adding 2(4) + 1 = 9, which is congruent to 1 mod 8.

At this point, it looks like there is a pattern:

4x^2 is congruent to 0 mod 8.

(4x + 1)^2 is congruent to 1 mod 8.

(4x + 2)^2 is congruent to 4 mod 8.

(4x + 3)^2 is congruent to 1 mod 8.

. Now, let us prove that this is the case for any number n.

n^2 is congruent to x mod 8.

(n + 1)^2 is congruent to x + 2n + 1 mod 8, adding 2n + 1.

(n + 2)^2 is congruent to x + 4n + 4 mod 8, adding 2n + 3.

(n + 3)^2 is congruent to x + 6n + 1 mod 8, adding 2n + 5. (This creates x + 6n + 9 mod 8, but we remove 8 because we know x + 6n + 9 is congruent to x + 6n + 1 mod 8).

(n + 4)^2 is congruent to x mod 8, adding 2n + 7. (This creates x + 8n + 8 mod 8, but we remove 8n + 8 for the same reason).

We have just proven that n^2 is congruent to (n + 4)^2 mod 8. Therefore, the pattern holds and every number will be 0, 1 or 4 mod 8.

Reply 9

Original post by ExpiredRice
..
(a) this thread is 10 years old!
(b) Posting full solutions is against forum rules. Please read the Posting Guidelines thread.

Reply 10

Original post by DFranklin
(a) this thread is 10 years old!
(b) Posting full solutions is against forum rules. Please read the Posting Guidelines thread.

Seems to be quite common. I'm sure OP appreciates the help...

Reply 11

Original post by zetamcfc
Seems to be quite common. I'm sure OP appreciates the help...

OP has quit TSR and likely doesn't care about a maths problem that he had difficulty with ten years ago. Get some sleep. It’s 3am in the UK.

Reply 12

Original post by Thisismyunitsr
OP has quit TSR and likely doesn't care about a maths problem that he had difficulty with ten years ago. Get some sleep. It’s 3am in the UK.

Wow, maybe think about whether or not someone is being sarcastic....

Reply 13

Original post by zetamcfc
Wow, maybe think about whether or not someone is being sarcastic....

Maybe you need to stop bumping ten year old threads in the first place

Reply 14

Original post by Thisismyunitsr
Maybe you need to stop bumping ten year old threads in the first place

Why are you even responding if you are against bumping old threads...

Reply 15

Original post by Thisismyunitsr
Maybe you need to stop bumping ten year old threads in the first place

He wasn't the one bumping the thread in the first place :biggrin: