{ "source_file": "./raw_volume-zh/volume1/chapter5.tex", "problem_type": "proof", "problem": "例9. 设 $n$ 为正整数, 在数集\n$$\n\\{-n,-n+1,-n+2, \\cdots,-1,0,1, \\cdots, n-1, n\\}\n$$\n中最多选取多少个数, 可使任意三个数的和均不为 0 (三个数可以相同)?", "solution": "分析:显然, 当选取的数的绝对值充分大时, 可使任意三个数的和均不为 0 .\n解设从题中数集中最多选取 $k$ 个数, 可使任意三个数的和均不为 0 . 考察子集\n$$\n\\left\\{-n, \\cdots,-\\left[\\frac{n}{2}\\right]-1,\\left[\\frac{n}{2}\\right]+1, \\cdots, n\\right\\},\n$$\n其中 $[x]$ 表示不超 $x$ 的最大整数.\n知当 $n$ 为偶数时, $k \\geqslant n$; 当 $n$ 为奇数时, $k \\geqslant n+1$.\n设 $A=\\left\\{a_1, a_2, \\cdots, a_m\\right\\}, B=\\left\\{b_1, b_2, \\cdots, b_l\\right\\}$ 都是元素为整数的非空集合.\n定义集合\n$$\nA+B=\\{a+b \\mid a \\in A, b \\in B\\},\n$$\n可以证明 $A+B$ 至少有 $m+l-1$ 个元素.\n事实上, 不妨设 $a_1