{{wikipedia|Combination}}
{{wikipedia|Permutation}}
;Task:
Implement the [[wp:Combination|combination]] (nCk) and [[wp:Permutation|permutation]] (nPk) operators in the target language:
:::*
:::*
See the Wikipedia articles for a more detailed description.
'''To test''', generate and print examples of:
* A sample of permutations from 1 to 12 and Combinations from 10 to 60 using exact Integer arithmetic.
* A sample of permutations from 5 to 15000 and Combinations from 100 to 1000 using approximate Floating point arithmetic.
This 'floating point' code could be implemented using an approximation, e.g., by calling the [[Gamma function]].
;Related task:
* [[Evaluate binomial coefficients]]
{{Template:Combinations and permutations}}