OFFSET
1,2
LINKS
David Consiglio, Jr., Table of n, a(n) for n = 1..5913
David Consiglio, Jr., Python Program
EXAMPLE
The 24 permutations of length 4 and their numbers of inversions:
1234 0
1243 1
1324 1
2134 1
1342 2
1423 2
2143 2
2314 2
3124 2
1432 3
2341 3
2413 3
3142 3
3214 3
4123 3
2431 4
3241 4
3412 4
4132 4
4213 4
3421 5
4231 5
4312 5
4321 6
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Feb 19 2016
STATUS
approved