How can i compute the Mahonian number x
at row n
, index i
, without compute previous rows?
Example n := 6, i := 2
row := "1 3 5 6 5 3 1"
x := row[i]
//5
Exists therefore an algorithmn / formula?
How can i compute the Mahonian number x
at row n
, index i
, without compute previous rows?
Example n := 6, i := 2
row := "1 3 5 6 5 3 1"
x := row[i]
//5
Exists therefore an algorithmn / formula?