题目
Set S consists of the integers {1, 2, 3, 4 . . . (2n + 1)}, where n is a positive integer. If X is the average of the odd integers in set S and Y is the average of the even integers in set S, what is the value of (X − Y)?
解析
集合\(S\)的最后一项是\(2n + 1\),因此它以奇数结尾。
\(2n + 1\)一定是奇数:\(2n\)始终是偶数,1是奇数,**偶数+奇数=奇数**,代入任意值都能验证这一点。
以集合\(S = \{1, 2, 3, 4, 5, 6, 7\}\)为例:
- \(X\)是其中4个奇数(1、3、5、7)的平均数:
对于项数为**偶数**的等距集合,平均数等于中间两项的平均值:
\[
X = \frac{3 + 5}{2} = \frac{8}{2} = 4
\]
- \(Y\)是其中3个偶数(2、4、6)的平均数:
对于项数为**奇数**的等距集合,平均数等于中间项:
\[
Y = 4
\]
因此\(X - Y = 4 - 4 = 0\)
答案:A