#Finding number of pairs that satisfy the equation
1 messages · Page 1 of 1 (latest)
for the first one, what values can x be? then y is automatically determined right
certainly x < n as we need y to be a positive integer. also if n is odd, can x be even?
then just count all the possible x
for the second question, part a already tells you the number of pairs (x+y, z). given x+y therefore, what are the possible values of (x, y)?
if you count the possible x, that is exactly the number of pairs
because for each x, there can only be one corresponding y that works
you are right that x is an odd number, but the maximum value of x is not 3, its n-2
i.e. count all the odd numbers between 1 and n-2
cool
first part fine then?
^ think about this
basically yes
^
yes, but then for each value of x+y, you can have different (x, y) with the same sum