What is the sum of the first 4 non-negative integers that cannot be written as either the sum or difference of two perfect squares ?
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.
x ² ± y ² = n
y ² ≡ 0 , 1 , 4 ( m o d 8 ) → x ² ≡ 0 , 1 , 4 ( m o d 8 )
In module 8
0 + 1 = 1 , 1 + 1 = 2 , 4 − 1 = 3 , 0 + 4 = 4 , 1 + 4 = 5 , 0 − 1 = 7 , 4 + 4 = 8
x ² ± y ² = 8 k + 6
8 ( − 1 ) + 6 = − 2 , 8 ( 0 ) + 6 = 6 , 8 ( 1 ) + 6 = 1 4 , 8 ( 2 ) + 6 = 2 2 , 8 ( 3 ) + 6 = 3 0
Finally 6 + 1 4 + 2 2 + 3 0 = 7 2