---
title: "Infinite Arithmetico-Geometric Series with Quadratic Numerator"
organization: "NityaDhi Digital Mathematics Lab (Asa Edtech Private Limited)"
url: "https://www.nityadhi.com/problems/hard-c11-w1-07-infinite-agp-quadratic-numerator"
board: "JEE Foundation"
grade: "Class 11"
published_at: "2026-11-25T14:45:00+05:30"
---

# Infinite Arithmetico-Geometric Series with Quadratic Numerator

Find the exact sum of the convergent infinite series:
$$S = \sum_{n=1}^{\infty} \frac{n^2 + n + 1}{3^n}$$

## Textbook Solution

Since $n^2 + n + 1$ is a quadratic polynomial and the denominator is $3^n$, this is a second-order Arithmetico-Geometric Progression (AGP). Since $\left|\frac{1}{3}\right| < 1$, the series converges absolutely.
Write out the series and multiply by the common ratio $\frac{1}{3}$:
$$S = \frac{3}{3} + \frac{7}{9} + \frac{13}{27} + \frac{21}{81} + \frac{31}{243} + \dots$$
$$\frac{1}{3}S = \frac{3}{9} + \frac{7}{27} + \frac{13}{81} + \frac{21}{243} + \dots$$
Subtracting the second equation from the first:
$$\frac{2}{3}S = 1 + \frac{4}{9} + \frac{6}{27} + \frac{8}{81} + \frac{10}{243} + \dots = 1 + T$$
where $T = \frac{4}{9} + \frac{6}{27} + \frac{8}{81} + \dots$ is now a standard first-order AGP. Multiply $T$ by $\frac{1}{3}$ and subtract again:
$$\frac{1}{3}T = \frac{4}{27} + \frac{6}{81} + \frac{8}{243} + \dots$$
$$\frac{2}{3}T = \frac{4}{9} + \frac{2}{27} + \frac{2}{81} + \frac{2}{243} + \dots = \frac{4}{9} + \frac{2/27}{1 - 1/3} = \frac{4}{9} + \frac{1}{9} = \frac{5}{9}$$
Hence $T = \frac{3}{2} \cdot \frac{5}{9} = \frac{5}{6}$. Substituting back:
$$\frac{2}{3}S = 1 + \frac{5}{6} = \frac{11}{6} \implies S = \frac{3}{2} \cdot \frac{11}{6} = \frac{11}{4}$$

## Vedic Shortcut

**NityaDhi Generating-Function Operator Shortcut:** For $|x| < 1$, use the three standard moments at $x = \frac{1}{3}$ ($1 - x = \frac{2}{3}$):
$$\sum_{n=1}^\infty x^n = \frac{x}{1-x} = \frac{1}{2}, \quad \sum_{n=1}^\infty n x^n = \frac{x}{(1-x)^2} = \frac{3}{4}, \quad \sum_{n=1}^\infty n^2 x^n = \frac{x(1+x)}{(1-x)^3} = \frac{3}{2}$$
Simply add the three values directly: $S = \frac{3}{2} + \frac{3}{4} + \frac{1}{2} = \frac{11}{4}$ in 10 seconds!

## Common Mistakes

1. **Using a single shift for a quadratic AGP:** Subtracting $\frac{1}{3}S$ once does not produce a pure GP—you still have linear terms in the numerator and must apply the shift a second time.
2. **Miswriting $\sum n^2 x^n$ as $\frac{x}{(1-x)^3}$:** Missing the $(1+x)$ factor in the numerator of $\sum_{n=1}^\infty n^2 x^n$ is a very common error.