For how many real numbers a does the quadratic equation x2+ax+6a=0 have only integer roots for x?
解析
Solution 1
Let x2+ax+6a=(x−s)(x−r). Vieta's yields s+r=−a,sr=6a.
sr+6s+6rsr+6s+6r+36(s+6)(r+6)===03636
Without loss of generality let r≤s.
The possible values of (r+6,s+6) are: (−36,−1),(−18,−2),(−12,−3),(−9,−4),(−6,−6),(1,36),(2,18),(3,12),(4,9),(6,6)⇒10values of a.
Solution 2
By Vieta's formulas, x1+x2=−a where x1,x2 are the roots of the quadratic, and since x1,x2 are integers, a must be an integer. Applying the quadratic formula,
x=2−a±a2−24a
Since −a is an integer, we need a2−24a to be an integer (let this be b): b2=a2−24a. Completing the square, we get
(a−12)2=b2+144
Which implies that b2+144 is a perfect square also (let this be c2). Then
c2−b2=144⟹(c+b)(c−b)=144
The pairs of factors of 144 are (±1,±144),(±2,±72),(±3,±48),(±4,±36),(±6,±24),(±8,±18),(±9,±16),(±12,±12); since c is the average of each respective pair and is also an integer, the pairs that work must have the same parity. Thus we get 10 pairs (counting positive and negative) of factors that work, and substituting them backwards show that they all work.