Permut Function

Purpose

Returns the number of permutations of n elements to k-th order without repetition.

Syntax

Permut(n, k)

n,k:integer expression

Description

Permut is defined as

Permut(n,k) = n!/(n-k)!.

Example

OpenW # 1

Print Permut(6, 2) // Prints 30

Remarks

If k > n an error is reported.

See Also

Fact(), Combin(), Variat

{Created by Sjouke Hamstra; Last updated: 21/10/2014 by James Gaite}