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.

A228395 The number of permutations of length n sortable by 3 prefix block transpositions.

Original entry on oeis.org

1, 2, 6, 24, 116, 521, 1877, 5531, 13939, 31156, 63416, 119802, 213006, 360179, 583871, 913061, 1384277, 2042806, 2943994, 4154636, 5754456, 7837677, 10514681, 13913759, 18182951, 23491976, 30034252, 38029006, 47723474, 59395191, 73354371, 89946377
Offset: 1

Views

Author

Vincent Vatter, Aug 21 2013

Keywords

Examples

			The shortest permutations which cannot be sorted by 3 prefix block transpositions are of length 5.
		

Crossrefs

Programs

  • Maple
    A228395:=n->1 + (1/24)*(3*n^6 - 37*n^5 + 184*n^4 - 441*n^3 + 509*n^2 - 218*n): seq(A228395(n), n=1..50); # Wesley Ivan Hurt, Apr 18 2017
  • PARI
    Vec(-1-(59*x^6+18*x^5+24*x^4-22*x^3+16*x^2-6*x+1)/(x-1)^7 + O(x^50)) \\ Michel Marcus, Apr 03 2015

Formula

G.f.: -1-(59*x^6 + 18*x^5 + 24*x^4 - 22*x^3 + 16*x^2 - 6*x + 1)/(x - 1)^7.
a(n) = 1 + (1/24)*(3n^6 - 37n^5 + 184n^4 - 441n^3 + 509n^2 - 218n). [Ralf Stephan, Aug 22 2013]