QlarIITy

MathematicsJEE Main 2026 · 28 JanuaryInteger

If∑r=125(rr4+r2+1)=pq\sum_{r=1}^{25}\left(\frac{r}{r^4 + r^2 + 1}\right) = \frac{p}{q}, where pp and qq are positive integers such that gcd⁡(p,q)=1\gcd(p, q) = 1, then p+qp + q 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. Factorising r4+r2+1r^4 + r^2 + 1 as a difference of squares makes the term a difference of reciprocals of consecutive values.

Concept refresher. A sum telescopes when each term is a difference of consecutive values of one sequence:

∑r=1n(ar−ar+1)=a1−an+1\sum_{r=1}^{n}\left(a_r - a_{r+1}\right) = a_1 - a_{n+1}

Also, as a difference of two squares, valid for every real rr,

r4+r2+1=(r2+1)2−r2=(r2−r+1)(r2+r+1)\begin{aligned} r^4 + r^2 + 1 &= \left(r^2 + 1\right)^2 - r^2 \\[4pt] &= \left(r^2 - r + 1\right)\left(r^2 + r + 1\right) \end{aligned}

Approach. Factorise the denominator, split each term into a difference of reciprocals, let the sum telescope, then reduce the fraction.

  1. Step 1: Split each term

    The two factors differ by 2r2r, so the term is half the difference of their reciprocals:

    r(r2−r+1)(r2+r+1)=12(1r2−r+1−1r2+r+1)\begin{aligned} &\frac{r}{\left(r^2 - r + 1\right)\left(r^2 + r + 1\right)} \\[4pt] &= \frac{1}{2}\left(\frac{1}{r^2 - r + 1} - \frac{1}{r^2 + r + 1}\right) \end{aligned}
  2. Step 2: Telescope

    With ar=1r2−r+1a_r = \frac{1}{r^2 - r + 1}, the next value is ar+1=1(r+1)2−(r+1)+1=1r2+r+1a_{r+1} = \frac{1}{(r + 1)^2 - (r + 1) + 1} = \frac{1}{r^2 + r + 1}. So the sum is

    12(a1−a26)=12(1−1651)\frac{1}{2}\left(a_1 - a_{26}\right) = \frac{1}{2}\left(1 - \frac{1}{651}\right)

    since 252+25+1=65125^2 + 25 + 1 = 651.

  3. Step 3: Reduce and add

    Simplifying, the sum is 12⋅650651=325651\frac{1}{2} \cdot \frac{650}{651} = \frac{325}{651}. Here 325=52⋅13325 = 5^2 \cdot 13 and 651=3⋅7⋅31651 = 3 \cdot 7 \cdot 31 share no factor, so p=325p = 325, q=651q = 651 and

    p+q=976p + q = 976

Answer. 976

Sanity check. For two terms the formula gives 12(1−17)=37\frac{1}{2}\left(1 - \frac{1}{7}\right) = \frac{3}{7}, and directly 13+221=921=37\frac{1}{3} + \frac{2}{21} = \frac{9}{21} = \frac{3}{7}.

Common wrong answers

  • 1301: Leaving out the factor 12\frac{1}{2} gives 1−1651=6506511 - \frac{1}{651} = \frac{650}{651} and 650+651=1301650 + 651 = 1301; the two factors differ by 2r2r, so each term is half the difference.
  • 901: Stopping the telescoping at r=24r = 24 leaves 12(1−1601)=300601\frac{1}{2}\left(1 - \frac{1}{601}\right) = \frac{300}{601} and 300+601=901300 + 601 = 901; the last term, r=25r = 25, ends at 1651\frac{1}{651}.
  • 1952: Keeping the unreduced form 6501302\frac{650}{1302} gives 650+1302=1952650 + 1302 = 1952; dividing by 22 gives 325651\frac{325}{651}, already in lowest terms.

Key takeaway

The trap. Dropping the factor 12\frac{1}{2}, or ending the telescoping one term too early.

How toppers think. They check that r2+r+1r^2 + r + 1 is the next value of r2−r+1r^2 - r + 1 before writing the sum.

Remember. rr4+r2+1=12(1r2−r+1−1r2+r+1)\frac{r}{r^4 + r^2 + 1} = \frac{1}{2}\left(\frac{1}{r^2 - r + 1} - \frac{1}{r^2 + r + 1}\right).

More on Special Series