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.

A195664 Array read by antidiagonals: Consecutive finite permutations of nonnegative integers in reverse colexicographic order.

Original entry on oeis.org

0, 1, 1, 2, 0, 0, 3, 2, 2, 2, 4, 3, 1, 0, 1, 5, 4, 3, 1, 2, 2, 6, 5, 4, 3, 0, 1, 0, 7, 6, 5, 4, 3, 0, 1, 1, 8, 7, 6, 5, 4, 3, 3, 0, 0, 9, 8, 7, 6, 5, 4, 2, 3, 3, 3, 10, 9, 8, 7, 6, 5, 4, 2, 1, 0, 1, 11, 10, 9, 8, 7, 6, 5, 4, 2, 1, 3, 3, 12, 11, 10, 9, 8, 7, 6, 5, 4, 2, 0, 1, 0, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 2, 0, 2, 2
Offset: 0

Views

Author

Tilman Piesk, Sep 22 2011

Keywords

Comments

Row n is the n-th finite permutation of {0,1,2,3...}.

Examples

			The first 24 permutations of nonnegative integers in rev colex order:
00  -->  0 1 2 3 4 5 6 7 ...
01  -->  1 0 2 3 ...
02  -->  0 2 1 3 ...
03  -->  2 0 1 3 ...
04  -->  1 2 0 3 ...
05  -->  2 1 0 3 ...
06  -->  0 1 3 2 ...
07  -->  1 0 3 2 ...
08  -->  0 3 1 2 ...
09  -->  3 0 1 2 ...
10  -->  1 3 0 2 ...
11  -->  3 1 0 2 ...
12  -->  0 2 3 1 ...
13  -->  2 0 3 1 ...
14  -->  0 3 2 1 ...
15  -->  3 0 2 1 ...
16  -->  2 3 0 1 ...
17  -->  3 2 0 1 ...
18  -->  1 2 3 0 ...
19  -->  2 1 3 0 ...
20  -->  1 3 2 0 ...
21  -->  3 1 2 0 ...
22  -->  2 3 1 0 ...
23  -->  3 2 1 0 ...
		

Crossrefs

Cf. A195663 (same for positive integers, so all entries are bigger by 1).

Formula

a(n) = A195663(n)-1.