WordGPT

The sum 1² + 2² + … + n²

Exercise · Level 3 (Medium)

Find a formula for the sum of the first n squares and use it for n = 10.

12+22+⋯+n21^2+2^2+\cdots+n^2

wordgptpro.com

Solution

  1. Sum the identity over k=1,…,nk=1,\dots,n. The left side telescopes to (n+1)3−1(n+1)^3-1:

    (n+1)3−1=3S+3⋅n(n+1)2+n,S=∑k2\begin{aligned}&(n+1)^3-1\\&=3S+3\cdot\frac{n(n+1)}{2}+n,\qquad S\\&=\sum k^2\end{aligned}
    (1)
  2. Solve for SS and factor:

    S=n(n+1)(2n+1)6S=\frac{n(n+1)(2n+1)}{6}
    (2)
  3. For n=10n=10:

    10⋅11⋅216=385\frac{10\cdot11\cdot21}{6}=385
    (3)
Answern(n+1)(2n+1)6\frac{n(n+1)(2n+1)}{6}

wordgptpro.com

Need a hint?

Add up the identity (k+1)³ − k³ = 3k² + 3k + 1 for k = 1 to n. Most terms cancel.

1² + 2² + … + n² = n(n+1)(2n+1)/6; for n = 10 this is 385.

How to work it out

  1. Sum the identity over k=1,…,nk=1,\dots,n. The left side telescopes to (n+1)3−1(n+1)^3-1:

    (n+1)3−1=3S+3⋅n(n+1)2+n,S=∑k2\begin{aligned}&(n+1)^3-1\\&=3S+3\cdot\frac{n(n+1)}{2}+n,\qquad S\\&=\sum k^2\end{aligned}
    (1)
  2. Solve for SS and factor:

    S=n(n+1)(2n+1)6S=\frac{n(n+1)(2n+1)}{6}
    (2)
  3. For n=10n=10:

    10⋅11⋅216=385\frac{10\cdot11\cdot21}{6}=385
    (3)
LaTeX source of the formulas on this page
\[ \frac{n(n+1)(2n+1)}{6} \]
\[ (n+1)^3-1=3S+3\cdot\frac{n(n+1)}{2}+n,\qquad S=\sum k^2 \]
\[ S=\frac{n(n+1)(2n+1)}{6} \]
\[ \frac{10\cdot11\cdot21}{6}=385 \]

Questions

What is the answer to: The sum 1² + 2² + … + n²?

1² + 2² + … + n² = n(n+1)(2n+1)/6; for n = 10 this is 385.

What is the key idea?

Telescoping a cube difference produces the sum of squares.

Is there a hint?

Add up the identity (k+1)³ − k³ = 3k² + 3k + 1 for k = 1 to n. Most terms cancel.

Related problems

More limits and sums

    The sum 1² + 2² + … + n²: answer and solution | WordGPT