Function Nbcombi1(N#, K#) As Double
'FORMULE PATRICKTOULON DVP
Dim Nb#, i#: Nb = N
For i = 1 To K - 1: Nb = Nb * (N - i): Next: Nbcombi1 = Nb
End Function
Function Nbcombi2(base#, N#) As Double
'FORMULE PATRICKTOULON DVP
Dim res#, x#, y#
x = Application.Combin(base, N)
y = Evaluate("Fact(" & N & " )*Combin(" & N & "," & N & ")")
Nbcombi2 = Val(x * y)
End Function
Function Nbcombi3(base#, N#) As Double
'formule de Menhir DVP
Dim res#
res = Evaluate("Fact(" & base & ")/Fact(" & base & "-" & N & ")")
Nbcombi3 = res
End Function