mahonians: Compute the Mahonian numbers.

Description Usage Arguments Value Examples

View source: R/mahonians.R

Description

Compute the Mahonian numbers.

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.