The correct
relation is fairly easy to gain by repeated use of partial integration:
1. Let
2. Thus, we have gained the recurrence relation:
(The case is identical if cosine constitutes our base, rather than sine, the exponent "n" remaining the same)
3. We note that

Thus, we easily see that for "n" odd, the integral will be 0.
Henceforth, we assume even n=2p for natural number p.
4. We may write, for any particular "n", the value as a "sew-saw"-pattern starting with "n" as the value in the leftmost denominator:
5. This can again be twiddled into an explicit form as follows:
With n=2p, the denominator

, where p! is the factorial of p.
Multiplying both the numerator and denominator with this expression yields:
The binomial coefficients are closely related to..Pascal's triangle.