Difference of two squares

How many integers between 1 and 100 can be written as the difference of two perfect squares?

For this problem, do not consider 0 as a perfect square.


The answer is 73.

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.

1 solution

Tran Hieu
Feb 18, 2016

We have a 2 b 2 a^2-b^2 only have form 2 k + 1 2k+1 or 4 k 4k . They will not have the form 4 k + 2 4k+2 .

From 1 to 100 there are 49 numbers with the form 2 k + 1 2k+1 - We have to exclude number 1

From 1 to 100 there are 24 numbers with the form 4 k 4k - We have to exclude number 4.

Therefore we have 49 + 24 = 73 49+24=\boxed{73}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...