Another small number theory proof

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
Firepanda
Messages
425
Reaction score
0
Show that if x, y ∈ Z and 3|x2+z2 then 3|x and 3|z

Solution:

3|(x-z)(x+z)

=> 3|x+z or 3|x-z

if 3|x+z

then 3|(x+z)2 = x2+z2 +2xz

=> 3|x2+z2 +2xz - (x2+z2)

=> 3|2xz

=> 3|xz

so 3|x or 3|z

where to go from here?

just the argument that if 3|x then 3|x2

and therefore 3 must divide z2 => 3|z?

Thanks
 
Last edited:
Physics news on Phys.org
Firepanda said:
Show that if x, y ∈ Z and 3|x2+z2 then 3|x and 3|z

Solution:

3|(x-z)(x+z)

=> 3|x+z or 3|x-z

if 3|x+z

then 3|(x+z)2 = x2+z2 +2xz

=> 3|x2+z2 +2xz - (x2+z2)

=> 3|2xz

=> 3|xz

so 3|x or 3|z

where to go from here?

just the argument that if 3|x then 3|x2

and therefore 3 must divide z2 => 3|z?

Thanks

Is the statement of the problem correct? We see a "y" in the hypothesis, but a "z" in the conclusion. More serious, instead of

3|x2+z2

did you mean

3|x2-z2?

I'm guessing that you meant the latter since your solution starts with

3|(x-z)(x+z)

and (x-z)(x+z) = x2-z2

Finally, you had two cases (3|x+z or 3|x-z), but only addressed the first.

Petek
 
Petek said:
Is the statement of the problem correct? We see a "y" in the hypothesis, but a "z" in the conclusion. More serious, instead of

3|x2+z2

did you mean

3|x2-z2?

I'm guessing that you meant the latter since your solution starts with

3|(x-z)(x+z)

and (x-z)(x+z) = x2-z2

Finally, you had two cases (3|x+z or 3|x-z), but only addressed the first.

Petek

It can't be x^2-z^2. If x=4 and z=2, 3|12, but 3 doesn't divide 4 OR 2. Firepanda should try thinking about what x^2 mod 3 equals.
 
Last edited: