n is a positive integer. how many ordered pair (x,y) is there such that x+y≤n? x and y are positive integers.
Answers
Answered by
0
Step-by-step explanation:
Good night
Sweet Dreams
Answered by
1
Answer:
The solution of is straight forward.
If both x and y have to be integers, y should be an integer and hence can take any value from the set {-12, -11, -10 ... 10, 11, 12} i.e. any one of 25 values (these are 25 values -12 to -1 (12 values), 0, 1 to 12 (another 12 values)) 13 of them are even and 12 of them are odd.
Every time y is even, x will be integer. e.g. y = 12, x = 0 (because x = (12 - even)/2 will be an integer)
Every time y is odd, x will be non-integer e.g. y = 1, x = 5.5 (because x = (12 - odd)/2 will not be an integer)
Therefore, for 13 values, x and y both will be integers.
Similar questions