Once upon a time,
during a final exam review session,
one of my friends was trying to prove this complex analysis homework problem:
∫−∞∞m=1∏Mt2+m21dt=(2M−1)(M−1)!M!π To finish the proof, there was a combinatorical identity that needed to be shown.
Look, I have no idea and I haven’t taken complex analysis (at least not yet)
so I can’t even explain.
Anyways, it was equivalent to this:
k=0∑n(−1)k+1k(n+k2n)=(n−12n−2) I’ll present two proofs,
one using generating functions
and one using the
DIE method.
First, a couple of facts that I stole from the internet:
(1+x)p=n∑(np)xn (1−x)n+1xn=t∑(nt)xt (1−x)2x=k=0∑∞kxk We’re going to let n be a free variable and
introduce s to replace the 2n in the binomial coefficient:
k=0∑n(−1)k+1k(n+ks). Now, we sum over s.
Let u=1−xx.
s∑k=0∑n(−1)k+1k(n+ks)xs=k=0∑n(−1)k+1ks∑(n+ks)xs=k=0∑n(−1)k+1k(1−x)n+k+1xn+k=(1−x)n+1xnk=0∑n(−1)k+1k(1−x)kxk=(1−x)n+1xnk=0∑n(−1)k+1kuk=−(1−x)n+1xnk=0∑nk(−u)k=−(1−x)n+1xn(1+u)2−u=(1−x)n+1xnx(1−x)=x2(1−x)n−1+1xn−1=x2t∑(n−1t)xt Looking at the x2n coefficient gives the identity.
(s=2n and t=2n−2)
Consider a row of 2n squares
where each square is either coloured “black”
or one of two light colours: “white” and “super-white”.
Then, k(n+k2n)
is counting the number of ways to paint n+k squares with a light colour
with exactly one of the first k from the left being super-white.
We assume 1≤k≥n.
Suppose the super-white square on the right of some square,
which must be coloured either black or white.
We can toggle the colour to get an involution
and still get a valid colouring
by adding or subtracting one to k.
□⊠⟺■⊠ The k in the two colourings differ by one
so these configurations will cancel in the summation.
This involution is not possible if
the super-white square is the left-most square.
In this case, we may toggle the color of the square
to the right of the super-white one.
⊠□⋯⟺⊠■⋯ This is always possible if the colour the square on the right is black
(k↦k+1)
or if the colour is white and k>1 (k↦k−1).
This mapping is an involution.
The exception is when k=1 and the
first two square are super-white and white.
Out of the remaining 2n−2 squares, there must be n−1 white ones
for a total of n+k=n+1 light squares.
Thus, there are (n−12n−2)
ways for this to happen.
These are counted positively so we get the desired identity.
Why exactly 2n squares and not some arbitrary amount s?
Interesting enough,
both methods give rise to the following generalization:
k=0∑n(−1)k+1k(n+ks)=(n−1s−2) As a final remark, we see that
(n+k2n)=(n−k2n) but from the generating function solution,
we find that
k=0∑n(−1)k+1k(n+ks)=k=0∑n(−1)k+1k(n−ks). I hope everything above is correct.
Maybe I’ll check over it later.