Problem

Source: China TST 2006

Tags: algebra, polynomial, number theory, greatest common divisor, modular arithmetic, vector, linear algebra



Let $a_{i}$ and $b_{i}$ ($i=1,2, \cdots, n$) be rational numbers such that for any real number $x$ there is: \[x^{2}+x+4=\sum_{i=1}^{n}(a_{i}x+b)^{2}\] Find the least possible value of $n$.