|
EXAMPLE
|
a(5)=4 because 5!=120 and {1,2,0} is at 5-th position of 6 permutations of {0,1,2}: {{0,1,2},{0,2,1},{1,0,2},{1,2,0},{2,0,1},{2,1,0}}.
a(14)=1060707 because 14!=87178291200 and {8,7,1,7,8,2,9,1,2,0,0} is at 1060707-th position of 1247400 permutations of {0,0,1,1,2,2,7,7,8,8,9}.
|