Question 14Let $a_i\in\{1,-1\}$ for all $i=1,2,3,\ldots,2014$ and $$M=\sum_{1\le i\lt j\le2014}a_i a_j.$$ Find the least possible positive value of $M$.