Let
S=∑1≤i≤j≤10xixj
We have
(x1+x2+x3+……x101)2=x12+x22+x32+……..+x1012+2S⇒2S=(i=1∑101xi)2−i=1∑101xi2
Since we have
xi=±1, So
xi2=1
So
2S=(∑i=1101xi)2−101
Since
∑i=1101xi will be an integer
So
(∑i=1101xi)2 will be a perfect square.
For smallest positive
S:(∑i=1101xi)2 must be the smallest perfect square greater than 101 .
So
(∑i=1101xi)2=121⇒∑i=1101xi=11 or −11
We can verify that the desired sum can be achieved by putting
45xi 's to be -1 and
56xi 's to be 1 So, 2S = 121-101=20
$\Rightarrow S=10