Handbook
Glossary
nCk-with-replacement ( n k -- nCk )
Vocabulary
math
.
combinatorics
.
private
Inputs
n
an
object
k
an
object
Outputs
nCk
an
object
Definition
USING:
math
math.combinatorics
;
IN:
math.combinatorics.private
::
nCk-with-replacement
( n k -- nCk )
k 1
-
n
+
factorial
k
factorial
/
n 1
-
factorial
/
;
inline