How many numbers between 1 and 10000 inclusive can be written as a difference of perfect squares ? For example, 4 can be written as 2 2 − 0 2 .
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.
m 2 − n 2 = ( m − n ) ( m + n ) . If m, n are consecutive integers then their difference will be 1 and sum will be an odd integer. H e n c e , m 2 − n 2 = An Odd Integer. Thus, every odd integer can be written as difference of two squares. If, m , n are both odd or both even then, 2 ∣ m − n and 2 ∣ m + n => 4 ∣ ( m 2 − n 2 ) Every, no. divisible by 4, can also be written as difference of two squares. 5 0 0 0 + 2 5 0 0 = 7 5 0 0
Problem Loading...
Note Loading...
Set Loading...
Two squares? This looks like a job for modular arithmetic! We have m 2 − n 2 = k . M o d 4 isn't bad to use, since all squares have the residue of 0 or 1 when divided by 4. So, we have 3 cases
So our answer is 7 5 0 0