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.

A228399 The number of permutations of length n sortable by 2 cut-and-paste moves.

Original entry on oeis.org

1, 2, 6, 24, 120, 577, 2208, 6768, 17469, 39603, 81272, 154225, 274802, 464985, 753556, 1177362, 1782687, 2626731, 3779196, 5323979, 7360972, 10007969, 13402680, 17704852, 23098497, 29794227, 38031696, 48082149, 60251078, 74880985, 92354252, 113096118
Offset: 1

Views

Author

Vincent Vatter, Aug 21 2013

Keywords

Examples

			The shortest permutations which cannot be sorted by 2 cut-and-paste moves are of length 6.
		

Crossrefs

Programs

  • Mathematica
    CoefficientList[Series[(1/x) (-1 + (x^11 - 5 x^10 - 2 x^9 + 44 x^8 - 23 x^7 - 87 x^6 - 22 x^5 - 24 x^4 + 22 x^3 - 16 x^2 + 6 x - 1)/(x - 1)^7), {x,
       0, 40}], x] (* Bruno Berselli, Aug 22 2013 *)

Formula

G.f.: -1 + (x^11 - 5*x^10 - 2*x^9 + 44*x^8 - 23*x^7 - 87*x^6 - 22*x^5 - 24*x^4 + 22*x^3 - 16*x^2 + 6*x - 1)/(x - 1)^7.
a(n) = n! for 0 < n < 5; for n > 4, a(n) = -18 + n*(107*n^5 -1077*n^4 +2225*n^3 +12345*n^2 -61732*n +80532)/720. [Bruno Berselli, Aug 22 2013]
Showing 1-1 of 1 results.