I want to evaluate $$ \sum_{k=0}^n (-1)^k \binom{n}{k} k. $$ I tried summation by parts, i.e. the formula $$ \sum_{k=0}^n (f(k+1) - f(k))g(k) = f(n+1)g(n+1) - f(0)g(0) - \sum_{k=0}^n f(k+1) (g(k+1) - g(k)) $$ with $f(k+1) - f(k) = (-1)^k \binom{n}{k}$ and $g(k) = k$. As $$ (-1)^{k+1}\binom{n-1}{k+1} - (-1)^k \binom{n-1}{k} = (-1)^{k+1} \left( \binom{n-1}{k+1} + \binom{n-1}{k} \right) = (-1)^{k+1} \binom{n}{k+1} $$ we have $f(k) = (-1)^k \binom{n-1}{k}$. Plugging into the formula \begin{align*} \sum_{k=0}^n (-1)^k \binom{n}{k} k & = (-1)^{n+1} \binom{n-1}{n+1} (n+1) - (-1)^0 \binom{n-1}{0}\cdot 0 - \sum_{k=0}^n (-1)^{k+1} \binom{n-1}{k+1} \\ & = \sum_{k=0}^n (-1)^{k} \binom{n-1}{k+1}. \end{align*} But for example if $n = 3$ then $$ \sum_{k=0}^n (-1)^k \binom{n}{k} k = -3 + 6 -3 = 0 $$ but $$ \sum_{k=0}^n (-1)^{k} \binom{n-1}{k+1} = \binom{2}{1} - \binom{2}{2} = 1 $$ which is not equal, but I cannot see whats wrong with the above derivation??
-
To find your mistake ... take $n=3$ and your functions $f,g$ ... then plug into the steps in your derivation. Find the first place something is wrong. – GEdgar Feb 28 '18 at 16:07
-
@GEdgar What steps, where I show $f(k) = (-1)^k \binom{n-1}{k}$? There I just use the standard recursion for the binomial coefficient. Or do you mean where I plug everything into the formula, but by choice of functions the first and second summand vanishes, hence whats left is the last summand, thats even what I "see" with $n = 3$?? – StefanH Feb 28 '18 at 16:28
-
hint: $\binom{n}{k}k=n\binom{n-1}{k-1}$ – drhab Feb 28 '18 at 16:35
2 Answers
Summation by parts is definitely an overkill, differentiation a lesser overkill. For any $n\geq 1$ we have $$ k\binom{n}{k} = n\binom{n-1}{k-1} $$ and $$ \sum_{k=0}^{n}(-1)^k\binom{n}{k}k = \sum_{k=1}^{n}(-1)^k\binom{n}{k}k = -n\sum_{k=1}^{n}(-1)^{k-1}\binom{n-1}{k-1}=-n\sum_{j=0}^{n-1}\binom{n-1}{j}(-1)^j $$ so your sum is constantly zero for any $n\geq 2$ and you just have to compute it by hand for $n=0$ and $n=1$.
- 361,689
-
Thanks, but I asked whats wrong with my derivation and I used the method for other sums as well, so this one is just an example where it fails, and I want to see why summation by parts "fails" here!? – StefanH Feb 28 '18 at 16:41
-
Yes I do, its called $f(k)$ here, and in the original sum it occurs as a difference hence its stands for the partial sum "$A_k$". – StefanH Feb 28 '18 at 16:59
-
1@StefanH: all right, did you check that your formula for $f(k)$ holds for $k=n$ and $k=(n-1)$, too? – Jack D'Aurizio Feb 28 '18 at 17:13
-
Ok, CY Aries pointed me in the right direction, I just took the $k+1$ from the $f(k+1)$ in the difference, but a "shift" was necessary. – StefanH Feb 28 '18 at 17:19
-
-
Interesting approach. This generalizes to show that $$\sum_{k=m}^n(-1)^k k^{\underline{m}}\binom{n}{k}=\begin{cases}(-1)^m m!&\text{ if }n=m\0&\text{ otherwise}\end{cases}$$ which could be used to then show $$\sum_{k=0}^n(-1)^k k^{m}\binom{n}{k}=\begin{cases}(-1)^m m!&\text{ if }m=n\0&\text{ if }m<n\end{cases}$$ – Nov 09 '18 at 04:09
You need $f(k+1) - f(k) = (-1)^k \binom{n}{k}$. But $$ (-1)^{k+1}\binom{n-1}{k+1} - (-1)^k \binom{n-1}{k} = (-1)^{k+1} \left( \binom{n-1}{k+1} + \binom{n-1}{k} \right) = (-1)^{k+1} \binom{n}{k+1} $$
So
$$ (-1)^{k}\binom{n-1}{k} - (-1)^{k-1} \binom{n-1}{k-1} = (-1)^{k} \left( \binom{n-1}{k} + \binom{n-1}{k-1} \right) = (-1)^{k} \binom{n}{k} $$
$f(k)=(-1)^{k-1} \binom{n-1}{k-1}$.
Of course, When $k=0$ and $k=n+1$, we have special cases and should consider seperately.
$f(1)=\binom{n-1}{0}=1$
$f(1)-f(0)=(-1)^0\binom{n}{0}=1$ and so $f(0)=0$
$f(n)=(-1)^{n-1}\binom{n-1}{n-1}=(-1)^{n-1}$
$f(n+1)-f(n)=(-1)^n\binom{n}{n}=(-1)^n$ and so $f(n+1)=(-1)^n+(-1)^{n-1}=0$
\begin{align*} \sum_{k=0}^n (-1)^k \binom{n}{k} k & =(0) (n+1) -(0)(0) - \sum_{k=1}^{n-1} (-1)^{k} \binom{n-1}{k}-f(1)(g(1)-g(0))-f(n+1)(g(n+1)-g(n)) \\ & = - \sum_{k=0}^{n-1} (-1)^{k} \binom{n-1}{k}+(-1)^0\binom{n-1}{0}-1\\ &=0 \end{align*}
My work:
$\displaystyle (1+x)^n=\sum_{k=1}^n\binom{n}{k}x^k+1$
Differentiating,
$\displaystyle n(1+x)^{n-1}=\sum_{k=1}^nk\binom{n}{k}x^{k-1}$
Put $x=-1$.
\begin{align*} \sum_{k=1}^nk\binom{n}{k}(-1)^{k-1}&=0\\ \sum_{k=1}^nk\binom{n}{k}(-1)^{k}&=(-1)(0)\\ \sum_{k=0}^nk\binom{n}{k}(-1)^{k}&=0+0=0\\ \end{align*}
- 23,788
-
This doesn't strike me as a particularly helpful answer - you don't attempt to explain the errors in the OP's calculation, which seems to be the point of the question. – Jason Feb 28 '18 at 16:37
-
Yes, surely nice to have other solutions. But what baffles me is why my approach is not working... so this question is whats wrong in my derivation!? – StefanH Feb 28 '18 at 16:39
-
1