Click or drag to resize

CombinatoricsGetCombinations Method

Gets the number of possible combinations (without repetition) according to the given number of elements and combination size.

Namespace:  Aglomera
Assembly:  Aglomera (in Aglomera.dll) Version: 1.1.0
Syntax
C#
public static long GetCombinations(
	long n,
	long k
)
Request Example View Source

Parameters

n
Type: SystemInt64
The number of elements in the set.
k
Type: SystemInt64
The number of elements to choose from the set (combination size).

Return Value

Type: Int64
The number of possible combinations (without repetition).
Remarks
See .