Permutations de $n$ éléments

In [14]:
from math import factorial
factorial(5)
Out[14]:
120

Combinaisons de $p$ éléments parmi $n$

In [7]:
from scipy.special import comb
comb(100,30,exact=True)
Out[7]:
29372339821610944823963760

Arrangements de $p$ éléments parmi $n$

In [17]:
from scipy.special import perm
perm(10,2,exact=True)
Out[17]:
90
In [16]:
perm(100,30,exact=True)
Out[16]:
7791097137057804874587232499277321440358327700684800000000
In [ ]: