Variat Function

Purpose

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

Syntax

# = Variat(n, k)

Description

Variat(n,k) is defined as:

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

Example

OpenW # 1

Print Variat(6, 2// Prints 30

Remarks

If k > n an error is reported.

See Also

Fact, Combin, Permut

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