In how many ways can you select two distinct integers from the set {1, 2, 3, . . . , 100} so that their sum is: (a) even? (b) odd?
I'm studying for a discrete midterm this coming Monday and saw the following problem on a practice midterm my Professor posted. I know the amount has to be less than C(100,2), but it would be naive to think the answer to a and b is just half that...right?
What's tricky about this problem is that I'm not confident about the relationship between odd and even numbers in generating sums. Here's what I can make out, at least intuitively:
Even + Even = Even, or C(50, 2) Odd + Odd = Even C(50,2) Even + Odd = Either (no idea how to compute this)
Am I approaching this problem the right way?