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.

Showing 1-1 of 1 results.

A320588 Derangements of {1,2,...,n} (n >= 2) in lexicographic order.

Original entry on oeis.org

21, 231, 312, 2143, 2341, 2413, 3142, 3412, 3421, 4123, 4312, 4321, 21453, 21534, 23154, 23451, 23514, 24153, 24513, 24531, 25134, 25413, 25431, 31254, 31452, 31524, 34152, 34251, 34512, 34521, 35124, 35214, 35412, 35421, 41253, 41523, 41532, 43152, 43251, 43512
Offset: 2

Views

Author

Enrique Navarrete, Nov 14 2018

Keywords

Comments

The number of derangements of {1,2,...,n} is given in A000166.
This sequence is unsatisfactory for n >= 10. To have a sequence that is defined for all n, the derangements should be comma-separated lists, with keyword tabf. - N. J. A. Sloane, Nov 15 2018

Examples

			Triangle begins:
     21;
    231,   312;
   2143,  2341,  2413,  3142,  3412,  3421,  4123,  4312,  4321;
  21453, 21534, 23154, 23451, 23514, 24153, 24513, 24531, 25134, ...
  ...
From _David A. Corneth_, Nov 15 2018: (Start)
43512 is in the sequence because no digit is equal to the index of the digit in the number (with offset 1).
43125 is not in the sequence because 5 is at the fifth position. (End)
		

Crossrefs

Programs

Showing 1-1 of 1 results.