perms(N;K)

Returns the number of permutations of two given values.

Syntax

perms(N;K)

Input

Argument Type Description
N integer or decimal The total number of elements in the set
K integer or decimal The number of elements in a subset

Return Value

Returns a decimal number corresponding to the number of permutations of N things taken K at a time.

If N or K is N/A, the result is N/A.

Sample Usage

N K perms(N;K)
0 1 0
3 2 6
6 3 120
7 4 840
8 8 40320
NA 4 NA
6 NA NA