Find the minimum number n of integers to be selected from S = {1, 2, . . . , 9} so that: (a) The sum of two of the n integers is even. (b) The difference of two of the n integers is 5.
The Answer to the Question
is below this banner.
Can't find a solution anywhere?
NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?
Get the Answers Now!You will get a detailed answer to your question or assignment in the shortest time possible.
Here's the Solution to this Question
The give set is
contain 5 odd number and 4 even number.
(a) We know that , sum of two integers is even iff both are odd or both are even.
On the other hand, if we select an even integer and an odd integer, their sum is odd, so two integers is not sufficient.
If we take three integers from set then at least two of them must have the same parity, which guarantees that we will have even sum.
Answer: three integers.
(b) Consider the subsets The worst case scenario is that we select one number from each of these subsets.
Thus, it is possible to select five integers and avoid a solution to
from this selection, but not six.
Answer: six integers.