Function to calculate the number of partitions with k groups of sizes between smin and smax
Stirling2_constraints(n, k, smin, smax)
n
: number of nodesk
: number of groupssmin
: minimum group size possible in the partitionsmax
: maximum group size possible in the partitiona numeric
n <- 6 k <- 2 size_min <- 2 size_max <- 4 Stirling2_constraints(n,k,size_min,size_max)
Downloads (last 30 days):