I'm learning Combinatorics and came across this question:
Find the exponential generating function of the following series $$a_n = (-1)^n \sum_{k=0}^{n}k \binom{n}{k}$$
I have problem with the part of the binom, because I know that when multiplying generating funciton the $n$ "part" is becoming $k \text{ or } n-k$ in the new sum from k to n (I hope you undertand what I mean). Anyway I would like to get some help
Recall that $$(1+x)^n=\sum_{k=0}^{n}{n\choose k}x^k.$$ Therefore $$a_n=(-1)^n\frac{d}{dx}(x+1)^n\bigg|_{x=1}=(-1)^nn(1+1)^{n-1}=(-1)^n2^{n-1}n.$$ Thus $$\text{EGF}_{(a_n)}(x)=\frac12\sum_{n\ge0}\frac{n}{n!}(-2x)^n=\frac12\sum_{n\ge1}\frac{(-2x)^n}{(n-1)!}=-x\sum_{n\ge0}\frac{(-2x)^n}{n!}=-xe^{-2x}.$$