cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A268532 Decimal representation of permutations of lengths 1, 2, 3, ... arranged first by number of inversions and then lexicographically.

This page as a plain text file.
%I A268532 #26 Mar 27 2016 22:29:28
%S A268532 1,12,21,123,132,213,231,312,321,1234,1243,1324,2134,1342,1423,2143,
%T A268532 2314,3124,1432,2341,2413,3142,3214,4123,2431,3241,3412,4132,4213,
%U A268532 3421,4231,4312,4321,12345,12354,12435,13245,21345,12453
%N A268532 Decimal representation of permutations of lengths 1, 2, 3, ... arranged first by number of inversions and then lexicographically.
%H A268532 David Consiglio, Jr., <a href="/A268532/b268532.txt">Table of n, a(n) for n = 1..5913</a>
%H A268532 David Consiglio, Jr., <a href="/A268532/a268532.py.txt">Python Program</a>
%e A268532 The 24 permutations of length 4 and their numbers of inversions:
%e A268532 1234 0
%e A268532 1243 1
%e A268532 1324 1
%e A268532 2134 1
%e A268532 1342 2
%e A268532 1423 2
%e A268532 2143 2
%e A268532 2314 2
%e A268532 3124 2
%e A268532 1432 3
%e A268532 2341 3
%e A268532 2413 3
%e A268532 3142 3
%e A268532 3214 3
%e A268532 4123 3
%e A268532 2431 4
%e A268532 3241 4
%e A268532 3412 4
%e A268532 4132 4
%e A268532 4213 4
%e A268532 3421 5
%e A268532 4231 5
%e A268532 4312 5
%e A268532 4321 6
%Y A268532 Cf. A000142 (n!), A030299 (in purely lexicographic order), A008302 (number of permutations with k inversions).
%K A268532 nonn,base
%O A268532 1,2
%A A268532 _N. J. A. Sloane_, Feb 19 2016