15 lines
478 B
Text
15 lines
478 B
Text
This programming task, is to calculate ANY binomial coefficient.
|
|
|
|
However, it has to be able to output <big><big><math>\binom{5}{3}</math></big></big>, which is '''10'''.
|
|
|
|
This formula is recommended:
|
|
<big><big>
|
|
:: <math>\binom{n}{k} = \frac{n!}{(n-k)!k!} = \frac{n(n-1)(n-2)\ldots(n-k+1)}{k(k-1)(k-2)\ldots 1}</math>
|
|
</big></big>
|
|
|
|
|
|
'''See Also:'''
|
|
* [[Combinations and permutations]]
|
|
* [[Pascal's triangle]]
|
|
{{Template:Combinations and permutations}}
|
|
<br>
|