Skip to main content

Challenge 418: Three Digit Difference

When can you express a number as the difference of two squares?

How many numbers, from 401 - 500 inclusive, can be written as the difference of two squares in exactly one way?

(Here, I define the difference of two squares as a2 - b2, where a and b are positive integers with a > b ≥ 0)