I. solution. Based on the conditions,
0=c⋅1−b2=(i=1∑ni2ai)(i=1∑nai)−(i=1∑niai)2
from which, after performing the operations, we get
0=i=1∑n−1j=i+1∑n(i2−2ij+j2)aiaj
On the right side, non-negative terms stand, so their sum can only be zero if each term is individually zero. This means that for every pair 1≦i≦j≦n, aiaj=0, which implies that at least n−1 of the numbers a1,a2,…,an are zero. The n-th value, based on ∑i=1nai=1, is 1, let this be ak. Then b=∑i=1niai=k⋅ak=k, an integer. This proves the statement of the problem.
II. solution. If we place masses of a1,a2,…,an units at the points 1,2,…,n on the number line, the center of mass of the system will be at b. The extent to which the mass is spread around its center of mass is generally measured by
d=i=1∑n(i−b)2ai
This quantity is non-negative by definition and can only be 0 if each term in the above sum is 0. Since the sum of the ai's is 1, not all of them can be 0. However, among the factors (i−b)2, at most one can be 0, and this only if b is an integer and i is equal to it. Therefore, if d=0, then b is an integer, so it is sufficient to prove that d=0. If we perform the squaring, we get
d=i=1∑ni2ai−2bi=1∑niai+b2i=1∑nai=c−b2
if therefore c=b2, then the value of d is indeed 0.
Remark. Since d≧0, it also follows from our solution that c≧b2 always holds, that is,
i=1∑ni2ai≧(i=1∑niai)2
Similarly, it can generally be shown that if ai≧0,∑i=1nai=1, and x1,…,xn are arbitrary, then
i=1∑nxi2ai≧(i=1∑nxiai)2