Maths WorkshopMaths problems with full solutions
Exercise 1538Combinatorics › Binomial coefficientsOlympiadAdded 3 Nov 2026

A complex binomial identity

#complex numbers#binomial#identity

Statement

Compute ∑k=0n(nk)cos⁡(kθ)\sum_{k=0}^{n}\binom{n}{k}\cos(k\theta) using complex numbers.

Hint

Take the real part of (1+eiθ)n(1+e^{i\theta})^n.

Show solutionHide solution

Solution

Complex. (1+eiθ)n=∑k(nk)eikθ(1+e^{i\theta})^n=\sum_k\binom{n}{k}e^{ik\theta}.

Real part. ∑k(nk)cos⁡(kθ)=Re⁡((1+eiθ)n)\sum_k\binom{n}{k}\cos(k\theta)=\operatorname{Re}((1+e^{i\theta})^n).

Compute. 1+eiθ=2cos⁡(θ/2)eiθ/21+e^{i\theta}=2\cos(\theta/2)e^{i\theta/2}, so (1+eiθ)n=2ncos⁡n(θ/2)einθ/2(1+e^{i\theta})^n=2^n\cos^n(\theta/2)e^{in\theta/2}.

Conclusion. ∑k(nk)cos⁡(kθ)=2ncos⁡n(θ/2)cos⁡(nθ/2)\sum_k\binom{n}{k}\cos(k\theta)=2^n\cos^n(\theta/2)\cos(n\theta/2).