Which of the following can be written as a 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.
Is there any method or formula for questions like this? @Brian Charlesworth @Calvin Lin @Geoff Pilling
Log in to reply
Noting that m 2 − n 2 = ( m − n ) ( m + n ) , an integer N can be written as the difference of two squares if it can be factored as a product of two even numbers or two odd numbers.
Suppose N = a b , where both a , b are even and a < b . Then let a = m − n and b = m + n . Then a + b = 2 m ⟹ m = 2 a + b , (which is an integer as a , b are even), and n = 2 b − a , (again guaranteed to be an integer). So for example, 8 8 = a b with a = 4 , b = 2 2 , giving us m = 1 3 , n = 9 . (We could also have a = 2 , b = 4 4 giving us m = 2 3 , n = 2 1 .)
Similarly where both a , b are odd. For example, 8 4 7 = 7 × 1 2 1 , giving us m = 6 4 , n = 5 7 .
Log in to reply
Integers that cannot be written as the difference of two squares are 1 , 2 , 4 , 6 , 1 0 , 1 4 , 1 8 , . . . . . Any odd integer 2 k + 1 , k ≥ 1 can be written as ( k + 1 ) 2 − k 2 . Any even integer of the form 4 k , k ≥ 2 can be written as ( k + 1 ) 2 − ( k − 1 ) 2 . No integer that is equivalent to 2 mod 4 can be written as the difference of two squares because the difference of two perfect squares is either 0 , 1 or 3 mod 4 , (since perfect squares are all either 0 or 1 mod 4 ).
Log in to reply
@Brian Charlesworth – Note that 0 is a perfect square, so 1 = 1 − 0 , 4 = 4 − 0 .
The characterization is that an integer
N
can be written as the difference of 2 squares if and only if
N
≡
2
(
m
o
d
4
)
. This is explained by Brian above
1. why
4
k
+
2
doesn't work,
2. provided a construction for all the other cases.
Since all odd numbers can be written as the difference of two perfect squares, I knew that the only possible answer was "All of these"
Problem Loading...
Note Loading...
Set Loading...
4 4 2 − 3 3 2 = 8 4 7
3 3 2 − 2 2 2 = 6 0 5
1 3 2 − 9 2 = 8 8
1 8 2 − 1 2 2 = 1 8 0
Hence the answer is all of these