Determine the number of positive integers less than or equal to which can be written in the form for some nonnegative integers .
This problem is from the OMO.
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.
Setting y = 0 and x = 1 gives 2 z + 1 so all odd numbers are possible. Setting ( x , y ) = ( 2 , 0 ) gives 1 6 + 8 z so all positive multiples of 8 strictly greater than 8 are possible. This gives a total of 1 0 0 7 + 2 5 0 = 1 2 5 7 possible numbers.
Now, we show that there are no other numbers. Note that the expression can also be written in the form ( x 2 + y 2 + z ) ( x + y ) ( x − y ) , so either all the factors are even or all of them are odd. This means that all non-multiples of 8 and even numbers cannot be written in this form.
Finally, we show that 8 is unattainable. Observe that x > y so that x + y = x − y = x 2 + y 2 + 2 z = 2 . This implies y = 0 , x = 2 , z = − 1 , which is clearly impossible. Thus, there are only 1 2 5 7 possible numbers.