Charles and Henry are discussing:
Charles: 158 cannot be written as a sum of two perfect squares.
Henry: No, you are wrong. It can be written as a sum of two perfect squares.
Who is correct?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
A perfect square can be 0 , 1 or 4 ( m o d 8 )
So, the sum of 2 perfect squares will be 0 , 1 , 2 , 4 , 5 ( m o d 8 )
1 5 8 ( m o d 8 ) = 6 ( m o d 8 )
⟹ 1 5 8 cannot be the sum of 2 squares