Proof If 7|(a^2+b^2) then 7|a and 7|b

  • Context: Undergrad 
  • Thread starter Thread starter lukaszh
  • Start date Start date
  • Tags Tags
    Proof
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
lukaszh
Messages
32
Reaction score
0
Hello,
how to prove
If 7|(a^2+b^2) then 7|a and 7|b.
(If seven divides a^2+b^2 then seven divides a and seven divides b)
Thanks.
 
Mathematics news on Phys.org
Hello lukaszh! :smile:

(try using the X2 tag just above the Reply box :wink:)
lukaszh said:
Hello,
how to prove
If 7|(a^2+b^2) then 7|a and 7|b.
(If seven divides a^2+b^2 then seven divides a and seven divides b)
Thanks.

Hint: what are 12, 22, 32 etc (mod 7)? :wink:
 
12=1 (mod7)
22=4 (mod7)
32=2 (mod7)
42=2 (mod7)
52=4 (mod7)
62=1 (mod7)
72=0 (mod7)
Is it periodic {1,4,2,2,4,1,0} ? Now I know :-) It's periodic, so if I add any of these congruences together there will be some remainder. Remainder is zero if and only if I add congruences in form
(7k)2=0 (mod7)
(7j)2=0 (mod7)
THANX :-)