login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A097900 Number of runs of length 1 in all permutations of [n]. (The permutation 3574162 has two runs of length 1: 357/4/16/2.) 3

%I #26 Sep 08 2022 08:45:14

%S 1,2,7,32,180,1200,9240,80640,786240,8467200,99792000,1277337600,

%T 17643225600,261534873600,4140968832000,69742632960000,

%U 1244905998336000,23475370254336000,466306218233856000,9731608032706560000

%N Number of runs of length 1 in all permutations of [n]. (The permutation 3574162 has two runs of length 1: 357/4/16/2.)

%C a(n) is the number of corners in the set of tree-like tableaux of size n (see Gao et al. link). - _Michel Marcus_, Nov 18 2015

%H G. C. Greubel, <a href="/A097900/b097900.txt">Table of n, a(n) for n = 1..445</a>

%H Alice L.L. Gao, Emily X.L. Gao, Patxi Laborde-Zubieta, Brian Y. Sun, <a href="http://arxiv.org/abs/1511.05456"> Enumeration of Corners in Tree-like Tableaux</a>, arXiv:1511.05456 [math.CO], 2016.

%H Ira M. Gessel, <a href="http://hdl.handle.net/1721.1/16342">Generating functions and enumeration of sequences</a>, Ph. D. Thesis, MIT, 1977.

%F a(n) = n!*(n+4)/6 for n >= 2.

%F E.g.f.: x*(6-6*x+x^2)/(6*(1-x)^2).

%e a(3) = 7 because there are 7 runs of length 1 in the permutations 123, 13(2), (2)13, 23(1), (3)12, (3)(2)(1) (shown between parentheses).

%p seq(ceil(n!*(n+4)/6),n=1..23);

%t Join[{1}, Table[n! (n + 4)/6, {n, 2, 20}]] (* _Vincenzo Librandi_, Nov 18 2015 *)

%t Rest[With[{nmax = 50}, CoefficientList[Series[x*(6 - 6*x + x^2)/(6*(1 - x)^2), {x, 0, nmax}], x]*Range[0, nmax]!]] (* _G. C. Greubel_, Dec 20 2017 *)

%o (Magma) [1] cat [Factorial(n)*(n+4)/6: n in [2..25]]; // _Vincenzo Librandi_, Nov 18 2015

%o (PARI) x='x+O('x^30); Vec(serlaplace(x*(6-6*x+x^2)/(6*(1-x)^2))) \\ _G. C. Greubel_, Dec 20 2017 *)

%o (PARI) a(n) = if(n==1, 1, n!*(n+4)/6); \\ _Altug Alkan_, Dec 21 2017

%K nonn

%O 1,2

%A _Emeric Deutsch_ and _Ira M. Gessel_, Sep 03 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 12:33 EDT 2024. Contains 371969 sequences. (Running on oeis4.)