I found the below combinatorial identity seems true:
$$\sum\limits_{k=0}^{n-1}\frac{\left(-1\right)^{n-k-1}\binom{2n}{2k+1}\binom{2k}{k}\binom{2n-2k}{n-k}}{2^{2n}\binom{n}{k}} = (-1)^{n-1}$$
but I have no idea how to prove it, anyone has some ideas?
Here is where this problem comes from.
I want to prove this Fourier series expansion
$\log\left(2\cos\frac{\theta}{2}\right)=\sum_{n=1}^{\infty}\frac{\left(-1\right)^{n-1}\cos n\theta}{n}$
then I try to calculate the coefficients by evaluating the following integral
\begin{eqnarray} a_{n}&=&\frac{2}{\pi}\int_{0}^{\pi}\cos\left(n\theta\right)\log\left(2\cos\frac{\theta}{2}\right)d\theta\\&=&\frac{2}{n\pi}\int_{0}^{\pi}\frac{\sin\left(n\theta\right)\sin\frac{\theta}{2}}{2\cos\frac{\theta}{2}}d\theta\\&=&\frac{\left(-1\right)^{n-1}}{n}\\A_{n}&=&\int_{0}^{\pi}\sin\left(n\theta\right)\tan\frac{\theta}{2}d\theta\\&=&2\int_{0}^{\frac{\pi}{2}}\sin\left(2n\theta\right)\tan\theta d\theta\\&=&2\sum_{k=0}^{n-1}\left(-1\right)^{n-k-1}\left(\begin{array}{c} 2n\\ 2k+1 \end{array}\right)\int_{0}^{\frac{\pi}{2}}\left(\cos\theta\right)^{2k}\left(\sin\theta\right)^{2n-2k}d\theta\\&=&\sum_{k=0}^{n-1}\left(-1\right)^{n-k-1}\left(\begin{array}{c} 2n\\ 2k+1 \end{array}\right)\frac{\Gamma\left(\frac{2k+1}{2}\right)\Gamma\left(\frac{2n-2k+1}{2}\right)}{\Gamma(n+1)}\\&=&\pi\sum_{k=0}^{n-1}\left(-1\right)^{n-k-1}\left(\begin{array}{c} 2n\\ 2k+1 \end{array}\right)\frac{\left(\begin{array}{c} 2k\\ k \end{array}\right)k!\left(\begin{array}{c} 2n-2k\\ n-k \end{array}\right)(n-k)!}{2^{2n}n!}\\&=&\pi\sum_{k=0}^{n-1}\frac{\left(-1\right)^{n-k-1}\left(\begin{array}{c} 2n\\ 2k+1 \end{array}\right)\left(\begin{array}{c} 2k\\ k \end{array}\right)\left(\begin{array}{c} 2n-2k\\ n-k \end{array}\right)}{2^{2n}\left(\begin{array}{c} n\\ k \end{array}\right)}\\&=&2\pi\left(-1\right)^{n-1}? \end{eqnarray}
therefore, I have two questions:
(1) is there a direct way to evaluate the integral $A_n$ ?
(2) how to prove the identity in a combinatoric way ?