QlarIITy

MathematicsJEE Main 2022 · 27 JulyInteger

Let f(x)=2x2−x−1f(x) = 2x^2 - x - 1 and S={n∈Z:∣f(n)∣≤800}S = \{n \in \mathbb{Z} : |f(n)| \leq 800\}. Then, the value of ∑n∈Sf(n)\sum_{n \in S}f(n) is equal to ______.

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. A condition on the size of a quadratic fixes a range of integers.

Concept refresher. An upward parabola y=An2+Bn+Cy = An^2 + Bn + C lies below a level LL between the two roots of An2+Bn+C=LAn^2 + Bn + C = L, and

∑k=1Nk2=N(N+1)(2N+1)6\sum_{k=1}^{N}k^2 = \dfrac{N(N + 1)(2N + 1)}{6}

Picture the situation. The graph of the function is an upward parabola whose lowest point is just below the axis, so the function never comes near minus 800. The condition therefore only cuts the parabola off at the level 800, at about minus 19.8 on the left and about 20.3 on the right. The integers between these two points form the set.

Graph of the upward parabola y = f(n) with the dashed level y = 800. The parabola meets the level at about n = minus 19.8 and n = 20.3, marked on the n-axis; between these two points the curve lies below the level.

Approach. Find the range of integers, then sum the quadratic term by term with the standard sums.

  1. Step 1: The range

    Since f(n)≥−98f(n) \geq -\dfrac{9}{8}, only f(n)≤800f(n) \leq 800 matters, that is 2n2−n−801≤02n^2 - n - 801 \leq 0, which holds for about −19.8≤n≤20.3-19.8 \leq n \leq 20.3. Indeed f(20)=779f(20) = 779 and f(−19)=740f(-19) = 740 are allowed, while f(21)=860f(21) = 860 and f(−20)=819f(-20) = 819 are not.

  2. Step 2: The sums

    For nn from −19-19 to 20 there are 40 integers, with ∑n2=2470+2870=5340\sum n^2 = 2470 + 2870 = 5340 and ∑n=20\sum n = 20.

  3. Step 3: The value

    So the sum of 2n2−n−12n^2 - n - 1 over the set is 2×5340−20−40=106202 \times 5340 - 20 - 40 = 10620.

Answer. 10620

Sanity check. The average of ff over the 40 integers is 1062040=265.5\dfrac{10620}{40} = 265.5, about one third of the largest value 779, as expected for a parabola summed outwards from its vertex.

Common wrong answers

  • 11439: Using the symmetric range −20-20 to 20 adds f(−20)=819f(-20) = 819, which breaks the condition, and gives 11439.
  • 10660: Forgetting the constant −1-1 in each of the 40 terms gives 10660.

Key takeaway

The trap. The linear term shifts the parabola, so the range of integers is not symmetric.

How toppers think. They test the integers next to each end of the range directly.

Remember. Test the integer on each side of both ends of the range.

More on Special Series