QlarIITy

MathematicsJEE Main 2025 · 4 AprilSingle correct

Consider the equation x2+4x−n=0x^2 + 4x - n = 0, where n∈[20,100]n \in [20, 100] is a natural number. Then the number of all distinct values of nn, for which the given equation has integral roots, is equal to

  1. Option A: 7
  2. Option B: 8
  3. Option C: 6
  4. Option D: 5
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. Integral roots of a monic integer quadratic need a perfect square under the root.

Concept refresher. Completing the square, x2+2bx−c=0x^2 + 2bx - c = 0 becomes

(x+b)2=b2+c(x + b)^2 = b^2 + c

so the roots are −b±b2+c-b \pm \sqrt{b^2 + c}. When bb and cc are integers, the roots are integers exactly when b2+cb^2 + c is a perfect square.

Picture the situation. Each natural number in the range gives one equation, and its two roots sit symmetrically about −2-2 at a distance equal to a square root. The roots land on integers only when that distance is a whole number, which happens for a handful of values of nn spread through the range.

Approach. Complete the square, state the perfect-square condition, and count the perfect squares in the range of the shifted quantity.

  1. Step 1: Complete the square

    The equation is (x+2)2=n+4(x + 2)^2 = n + 4, so its roots are

    x=−2±n+4x = -2 \pm \sqrt{n + 4}

    They are integers exactly when n+4n + 4 is a perfect square.

  2. Step 2: Range of the square

    Since 20≤n≤10020 \leq n \leq 100, the number n+4n + 4 lies between 24 and 104. The perfect squares in this stretch are 25, 36, 49, 64, 81 and 100.

  3. Step 3: Count

    These correspond to n=21n = 21, 32, 45, 60, 77 and 96, so there are 6 values of nn.

Answer. (C) 6

Sanity check. For n=21n = 21 the equation x2+4x−21=0x^2 + 4x - 21 = 0 factorises as (x+7)(x−3)=0(x + 7)(x - 3) = 0, with integral roots. For n=20n = 20 the roots are −2±24-2 \pm \sqrt{24}, not integers, so the count rightly starts at 21.

Why the other options are wrong

  • (A) A count of 7 would need a seventh square in the stretch from 24 to 104; the next ones, 16 and 121, lie outside it.
  • (B) A count of 8 would need two more squares; only 525^2 to 10210^2 fall between 24 and 104.
  • (D) A count of 5 counts the squares between 20 and 100 with 100 left out, or counts squares of nn itself; the condition is on n+4n + 4, and 100 is allowed.

Key takeaway

The trap. The square condition applies to the shifted quantity, not to the parameter itself.

How toppers think. They count squares by their roots: from 5 to 10 there are six integers.

Remember. x2+4x−n=0x^2 + 4x - n = 0 has roots −2±n+4-2 \pm \sqrt{n + 4}.

More on Nature of Roots