Mathematics (JEE)Very hardJEE Main · JEE Advanced

The number of quadratic equations x² + px + q = 0 with integer p, q, p + q = 30 and both roots integers is:

  1. A. 4
  2. B. 1
  3. C. 0
  4. D. 2

Correct answer: D. 2

If the roots are r, s then p = −(r + s), q = rs, and p + q = 30 gives rs − r − s = 30, i.e. (r − 1)(s − 1) = 31. Since 31 is prime, {r − 1, s − 1} = {1, 31} or {−1, −31}, giving roots {2, 32} or {0, −30}. Each unordered pair gives one equation: x² − 34x + 64 = 0 and x² + 30x = 0, so 2 equations.

More Quadratic Equations and Complex Numbers questions

Exams that ask this topic