由
(a+b+c)2=a2+b2+c2+2(ab+bc+ca)
可得
a2+b2+c2=36−18=18.
固定一个变量,例如 a。此时
b+c=6−a,bc=9−a(6−a)=(a−3)2.
要使 b,c 为实数,需要
(b−c)2=(6−a)2−4(a−3)2=−3a(a−4)≥0,
所以每个变量都在 [0,4] 内。
又因为 a+b+c=6 是整数,
⌊a⌋+⌊b⌋+⌊c⌋=6−({a}+{b}+{c}),
而三个小数部分之和是小于 3 的整数。因此取整和只可能是 4,5,6。
这三个值都能取到:
(0,3,3)⇒6,
(41,823+35,823−35)⇒5,
以及
(21,411+21,411−21)⇒4.
因此所有可能值之和为
4+5+6=15.
英文解析
From
(a+b+c)2=a2+b2+c2+2(ab+bc+ca)
we get
a2+b2+c2=36−18=18.
For any one variable, say a, the other two variables must be real. With
b+c=6−a,bc=9−a(6−a)=(a−3)2,
we need
(b−c)2=(6−a)2−4(a−3)2=−3a(a−4)≥0.
Thus every variable lies in [0,4]. Since a+b+c=6 is an integer,
⌊a⌋+⌊b⌋+⌊c⌋=6−({a}+{b}+{c}),
and the sum of the fractional parts is an integer strictly less than 3. Hence the floor sum can only be 4,5, or 6.
All three values occur:
(0,3,3)⇒6,
(41,823+35,823−35)⇒5,
and
(21,411+21,411−21)⇒4.
Therefore the sum of all possible values is
4+5+6=15.