Complicated divisibility problem

  • Thread starter Thread starter ripcity4545
  • Start date Start date
  • Tags Tags
    Divisibility
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
4 replies · 2K views
ripcity4545
Messages
16
Reaction score
0

Homework Statement



If 5 divides m^2 + n^2 + p^2 , prove that 5 divides wither m, or n, or p.

Homework Equations



m,n,p are all integers

The Attempt at a Solution



I am having some major problems with this chapter on modular arithmetic. any help is much appreciated!

modular arithmetic is not needed to solve the problem, but may be helpful.
 
Last edited:
Physics news on Phys.org
What possible values can m^2 have mod 5?
 
Tedjn said:
What possible values can m^2 have mod 5?

Well if we are considering divisibility by 5, i can let
m=5k+r, where k is some integer and r may be 0, 1, 2, 3, or 4.

So m^2 = 25k^2 + 10kr +r^2
so
m^2 ≡ n mod 5 equals:

25k^2 + 10kr +r^2 ≡ n mod 5
and since 25k^2 + 10kr ≡ 0 mod 5, we are left with
r^2 ≡ n mod 5

so n may be 1, 4, or 0. Am I going in the right direction? Thanks for the reply.
 
That's correct. So what can m^2 + n^2 + p^2 be if none are congruent to 0 mod 5?
 
thanks for your help.
 
Last edited: