mahonians_recursive: Compute the Mahonian numbers recursively (very slow for n >...

Description Usage Arguments Value Examples

View source: R/mahonians-recursive.R

Description

Compute the Mahonian numbers recursively (very slow for n > 8).

Usage

1

Arguments

n

A positive integer.

Value

The number of permutations of n having k inversions, as k ranges from 0 to n.

Examples

1
2

corybrunson/tautable documentation built on March 29, 2021, 9:22 p.m.