Permutation and Combination

table of contents


nPr
nCr

nPr

Syntax: nPr(n, r[)]
   (“n” and “r” must be positive integers.)

  • Returns the total number of permutations where n is the total number of objects in the set and r is the number of objects chosen from the set.
    \(\displaystyle{}_n P_r = \frac{n!}{(n-r)!}\)

スティッキー
スティッキー

nCr

Syntax: nCr(n, r[)]
   (“n” and “r” must be positive integers.)

  • Returns the total number of combinations where n is the total number of objects in the set and r is the number of objects chosen from the set.
    \(\displaystyle{}_n C_r = \frac{n!}{r!(n-r)!}\)

スティッキー
スティッキー