-
Aman verma
- Master | Next Rank: 500 Posts
- Posts: 304
- Joined: Wed Jan 27, 2010 8:35 am
- Location: International Space Station
- Thanked: 11 times
- Followed by:3 members
So I see a quick and slow way to do this.Aman verma wrote:Q: Consider the set S = { 2,3,4.............,2n + 1} ,where n is a positive integer greater than 2007.Define X as the average of odd integers in S and Y as the average of the even integers in S . What is the value of X - Y ?
a) 0
b)1
c)(1/2)n
d) (n+1)/2n
e)2008
Slow way (but more thorough)
Let K represent the number of terms in the set. Since 2n+1 is an odd number, and the set begins with an even number, there will be an equivalent number of odds and evens in the set. And thus each subset (odds and evens) has .5K numbers in it.
Average(odd) = sum of odds / .5 * K
Average(even) = sum of evens / .5*K
Average(odd-even) = sum of odds - sum of evens / .5K
But if you start writing out the sum of odds - sum of evens you have
-2+3-4+5-6+7+...
For each negative even there is an odd that is one more than it. You will have
1+1+1+...
How many 1's will you have? .5*K, since each sum to one takes 2 numbers (an odd and an even) and thus halves the number of terms in the set. The sum will be .5*K*1 = .5*K. Putting that back into the forumla you have:
.5*K / .5*K = 1
Or you could have simply notice that -2+3-4+5-6+7+... = 1+1+1+... and that the number of terms in each subset would be half the total number of terms in the set thus giving you an average of 1.

















