Learn R Programming

PerMallows (version 1.8)

count.perms.cycles: Count permutations with a given number of cycles

Description

Given the number of items in the permutations, how many permutations are there with with the given number of cycles?

Usage

count.perms.cycles(perm.length, num.cycles)

Arguments

perm.length
number of items in the permutations
num.cycles
number of cycles of the permutations to count

Value

  • The number of permutations with the specified number of cycles

Examples

Run this code
count.perms.cycles(4,2)
count.perms.cycles(4,1)

Run the code above in your browser using DataLab