3
$\begingroup$

what is the value of this series $$\sum_{n=1}^\infty \frac{n^2}{2^n} = \frac{1}{2}+\frac{4}{4}+\frac{9}{8}+\frac{16}{16}+\frac{25}{32}+\cdots$$

I really tried, but I couldn't, help guys?

$\endgroup$
3
  • 1
    $\begingroup$ Is the last term supposed to be $\frac{25}{32}$? $\endgroup$
    – MT_
    Commented Jun 29, 2015 at 20:02
  • 2
    $\begingroup$ @GitGud I suspect the series is supposed to be $\frac{n^2}{2^n}$ $\endgroup$
    – MT_
    Commented Jun 29, 2015 at 20:02
  • $\begingroup$ @Soke yes man you are right $\endgroup$
    – HANSE
    Commented Jun 29, 2015 at 20:04

5 Answers 5

16
$\begingroup$

Since $n^2 = 2\binom{n}{2}+\binom{n}{1}$ we have: $$ S=\sum_{n\geq 1}\frac{n^2}{2^n}=\left.\left(2\frac{x^2}{(1-x)^3}+\frac{x}{(1-x)^2}\right)\right|_{x=\frac{1}{2}}=\color{red}{6}.$$ As an alternative to the negative binomial series, we may also use: $$ S = 2S-S = \sum_{n\geq 1}\frac{n^2}{2^{n-1}}-\sum_{n\geq 1}\frac{n^2}{2^n}=1+\sum_{n\geq 1}\frac{(n+1)^2-n^2}{2^n}=2+2\sum_{n\geq 1}\frac{n}{2^n}$$ so that, in the same way: $$ \sum_{n\geq 1}\frac{n}{2^n} = T = 2T-T = \sum_{n\geq 1}\frac{n}{2^{n-1}}-\sum_{n\geq 1}\frac{n}{2^n} = 1+\sum_{n\geq 1}\frac{1}{2^n}=2 $$ and $S=2+2\cdot 2=\color{red}{6}$.

$\endgroup$
6
  • $\begingroup$ Always there with the slick answers. I like the second approach. $\endgroup$
    – Joel
    Commented Jun 29, 2015 at 20:23
  • $\begingroup$ +1 for the second answer. It's essentially what I'm trying to get at but in a much more concise way. $\endgroup$
    – MT_
    Commented Jun 29, 2015 at 20:24
  • 1
    $\begingroup$ Second approach definitely ! Nice discrete integration by parts. $\endgroup$
    – Tom-Tom
    Commented Jun 29, 2015 at 20:41
  • 1
    $\begingroup$ @Tom-Tom I like to call it summagration by parts :) $\endgroup$
    – MT_
    Commented Jun 29, 2015 at 21:01
  • $\begingroup$ Nice use of summation by parts :). en.wikipedia.org/wiki/Summation_by_parts $\endgroup$
    – Héctor
    Commented Jun 29, 2015 at 21:19
11
$\begingroup$

For $x$ such that $|x|<1$ we have $$f(x)=\sum_{n=0}^\infty x^n=\frac1{1-x}.$$ The derivative of $f$ is $$f'(x)=\sum_{n=0}^\infty nx^{n-1}=\frac{1}{\left(1-x\right)^2},$$ such that $$xf'(x)=\sum_{n=1}^\infty nx^n=\frac x{\left(1-x\right)^2}.$$ A second derivative gives $$xf''(x)+f'(x)=\sum_{n=1}^\infty n^2x^{n-1}=\frac1{\left(1-x\right)^2}+\frac{2x}{\left(1-x\right)^3}$$ so you deduce that $$\sum_{n=0}^\infty n^2x^n=\frac{x+x^2}{\left(1-x\right)^3}.$$ With $x=1/2$, this gives $\sum_n n^22^{-n}=6$.

EDIT: Another equivalent solution

Write the series for $-1<x<1$ $$f(x)=\sum_{n=0}^\infty x^n=\sum_{n=0}^\infty \mathrm e^{n\ln x}=\frac1{1-x}=\frac1{1-\mathrm e^{\ln x}}.$$ Thus, the series we look for is $$\frac{\mathrm d^2f}{\mathrm d(\ln x)^2}=\sum_{n=0}^\infty n^2\mathrm e^{n\ln x}=\frac{\mathrm d}{\mathrm d\ln x}\left(\frac{\mathrm e^{\ln x}}{\left(1-\mathrm e^{\ln x}\right)^2}\right)=\frac{2\mathrm e^{2\ln x}}{\left(1-\mathrm e^{\ln x}\right)^3}+\frac{\mathrm e^{\ln x}}{\left(1-\mathrm e^{\ln x}\right)^2}=\frac{x+x^2}{\left(1-x\right)^3}.$$ The result is obtained setting $x=1/2$ and we get $$\sum_{n=0}^\infty \frac{n^2}{2^n}=6.$$

$\endgroup$
2
  • $\begingroup$ +1 Looks good to me. Duplicates happen all the time, mainly because answers take so much time to write. No need to throw away your effort. $\endgroup$
    – Joel
    Commented Jun 29, 2015 at 20:39
  • $\begingroup$ This reminds me of Rodney Dangerfield in Back to School: "The answer to question 1, part 15, subpart 7, section 3, subsection 11 is ... 6?" $\endgroup$ Commented Jun 30, 2015 at 14:26
6
$\begingroup$

Hint:

$$\sum_{n=1}^{\infty} \frac{n^2}{2^n} = \sum_{i=1}^{\infty} (2i - 1) \sum_{j=i}^{\infty} \frac{1}{2^j}.$$

Start by using the geometric series formula on $\displaystyle \sum_{j=1}^{\infty} \frac{1}{2^j}$ to simplify the double series into a singular series. Then you will have a series that looks like $\displaystyle \sum_{i=1}^{\infty} \frac{i}{2^i}$. Just as I broke your initial series with quadratic term $n^2$ into a double series with linear term $i$, you can break this series with linear term $i$ into a double series with constant term $c$.

In a clearer form:

\begin{align} &\frac{1}{2} + &\frac{4}{4} + &\frac{9}{8} + &\frac{16}{16} + \dots =\\ &\frac{1}{2} + &\frac{1}{4} + &\frac{1}{8} + &\frac{1}{16} + \dots +\\ & &\frac{3}{4} + &\frac{3}{8} + &\frac{3}{16} + \dots + \\ & & & \frac{5}{8} + &\frac{5}{16} + \dots + \\ & & & &\frac{7}{16} + \dots + \\ \end{align}

Notice that each of the sums are geometric series, which can be evaluated easily.

Sorry about the weird formatting, I don't know where these spaces are coming from.


$\endgroup$
4
  • $\begingroup$ man, I swear I couldn't, can you give me the answer? $\endgroup$
    – HANSE
    Commented Jun 29, 2015 at 20:06
  • 5
    $\begingroup$ @NRSSA Let it simmer a bit. All good math, like a home-cooked meal, takes time. $\endgroup$
    – MT_
    Commented Jun 29, 2015 at 20:09
  • $\begingroup$ did you mean that the answer is $\frac{7}{16}$ $\endgroup$
    – HANSE
    Commented Jun 29, 2015 at 20:16
  • $\begingroup$ @NRSSA The middle block I decomposed the series on the first line into a bunch of smaller series. Notice that when you add the columns, they add up to the entry up top (e.g. $\frac{1}{4} + \frac{3}{4} = \frac{4}{4}; \frac{1}{8} + \frac{3}{8} + \frac{5}{8} = \frac{9}{8}$). Also, notice how each row you get is a geometric series. $\endgroup$
    – MT_
    Commented Jun 29, 2015 at 20:22
4
$\begingroup$

Assuming as @Soke does, your series is $$\sum_{n=1}^\infty \frac{n^2}{2^n}$$ we can use the geometric series in order to find a closed form solution. The trick is to take derivatives and multiply by $x$.

Note that $$f(x) = \sum_{n=1}^\infty x^n = \frac{x}{1-x}$$ yields a derivative of $$\sum_{n=1}^\infty n x^{n-1} = \frac{d}{dx} \frac{x}{1-x} = \frac{1}{(1-x)^2}.$$ We multiply it by $x$ to get: $$\sum_{n=1}^\infty nx^n = \frac{x}{(1-x)^2}.$$

If we take another derivative we find $$\sum_{n=1}^\infty n^2 x^{n-1} = \frac{d}{dx} \frac{x}{(1-x)^2} = \frac{(1-x)^2+2(1-x)x}{(1-x)^4}= \frac{1+x}{(1-x)^3}.$$

Finally we multiply by $x$ again: $$\sum_{n=1}^\infty n^2 x^n = \frac{x(1+x)}{(1-x)^3}$$ and the answer you are looking for corresponds to $x=1/2$.

$\endgroup$
4
  • 1
    $\begingroup$ Too much information, in particular because the other, first answer, is giving the OP some time to chew and assimilate what he wrote there. $\endgroup$
    – Timbuc
    Commented Jun 29, 2015 at 20:14
  • $\begingroup$ @Timbuc, you may be right about too much information. As for the other answer, I was well into writing this one before it was posted, and the approach is completely different. $\endgroup$
    – Joel
    Commented Jun 29, 2015 at 20:15
  • $\begingroup$ you mentioned the other answer, so that you could see he didn't give the whole answer altogether... $\endgroup$
    – Timbuc
    Commented Jun 29, 2015 at 20:16
  • $\begingroup$ I was mentioning his comment to the question. @Timbuc $\endgroup$
    – Joel
    Commented Jun 29, 2015 at 20:17
3
$\begingroup$

Here's a bit of a twist on the second approach in Jack D'Aurizio's answer. It's main virtue (if any) is that it avoids explicitly evaluating the auxiliary sum $\sum{n\over2^n}$, getting it to drop out instead.

It's convenient to start the sum at $n=0$ instead of $n=1$. Borrowing Jack's notation, we have

$$S=\sum_{n=0}^\infty{n^2\over2^n},\quad T=\sum_{n=0}^\infty{n\over2^n},\quad\text{and}\quad2=\sum_{n=0}^\infty{1\over2^n}$$

Then

$$\begin{align} S-2&=\sum_{n=0}^\infty{n^2-1\over2^n}\\ &=\sum_{n=0}^\infty{(n+1)(n-1)\over2^n}\\ &=\sum_{m=1}^\infty{m(m-2)\over2^{m-1}}\\ &=2\sum_{m=1}^\infty{m^2\over2^m}-4\sum_{m=1}^\infty{m\over2^m}\\ &=2S-4T \end{align}$$

so

$$S=4T-2$$

which will turn out to be better written as

$$4S=16T-8$$

Likewise (and here's where the twist comes in), we have

$$\begin{align} S-8&=\sum_{n=0}^\infty{n^2-4\over2^n}\\ &=\sum_{n=0}^\infty{(n+2)(n-2)\over2^n}\\ &=\sum_{m=2}^\infty{m(m-4)\over2^{m-2}}\\ &=4\sum_{m=2}^\infty{m^2\over2^m}-16\sum_{m=2}^\infty{m\over2^m}\\ &=4(S-{1\over2})-16(T-{1\over2})\\ &=4S-16T+6 \end{align}$$

so

$$3S=16T-14$$

Subtracting this equation from the cleverly written $4S=16T-8$ leaves

$$S=6$$

As promised, we haven't bothered computing $T$ (although it's clear its value is easily obtained).

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .