Modular Arithmetic: Solve (21999+31998+51997) Divided by 7

  • Thread starter Thread starter triac
  • Start date Start date
  • Tags Tags
    Arithmetic
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 3K views
triac
Messages
19
Reaction score
0

Homework Statement


Okay, so I'm going to find the smallest positive remainder of (21999+31998+51997) divided by seven.


Homework Equations





The Attempt at a Solution


Well, I did like this:
23 is congruent to 1 (mod 7). Therefore, 21999= (23)1999/3 is congruent to 1 (mod 7).
33 is congruent to (-1) (mod 7). Therefore, 31998=(33)666 is congruent to (-1)666=1 (mod 7).
53 is congruent to (-1) (mod 7). Therefore, 51997=(53)665*25 is congruent to (-1)665*4 = -4 (mod 7)

So, all in all the remainder should be two. However it says in the key that it is six, and I can't see where I'm wrong. Got any suggestions?
 
Physics news on Phys.org
triac said:

Homework Statement


Okay, so I'm going to find the smallest positive remainder of (21999+31998+51997) divided by seven.


Homework Equations





The Attempt at a Solution


Well, I did like this:
23 is congruent to 1 (mod 7). Therefore, 21999= (23)1999/3 is congruent to 1 (mod 7).
33 is congruent to (-1) (mod 7). Therefore, 31998=(33)666 is congruent to (-1)666=1 (mod 7).
53 is congruent to (-1) (mod 7). Therefore, 51997=(53)665*25 is congruent to (-1)665*4 = -4 (mod 7)

So, all in all the remainder should be two. However it says in the key that it is six, and I can't see where I'm wrong. Got any suggestions?

Here's what I get:
23 is congruent to 1 (mod 7). Therefore, 21999= (23)666*2 is congruent to 2 (mod 7) (not 1 mod 7 as you had).
33 is congruent to (-1) (mod 7). Therefore, 31998=(33)666 is congruent to (-1)666=1 (mod 7).
53 is congruent to (-1) (mod 7). Therefore, 51997=(53)665*25 is congruent to (-1)665*4 = -4 (mod 7) = 3 mod 7.

Add 'em up and you get 6 mod 7.
 
Ok, thanks a lot!
I just wonder, why is it wrong to do the way I did, why doesn't it work?