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!)
A151624 Number of permutations of 2 indistinguishable copies of 1..n with exactly 2 adjacent element pairs in decreasing order. 5

%I #14 Jun 19 2022 02:18:53

%S 0,1,48,603,5158,37257,247236,1568215,9703890,59226357,358722928,

%T 2163496611,13017647646,78225458401,469740168924,2819689366191,

%U 16922139539626,101545622110989,609314411814024,3656015481903355,21936500845191030,131620291694585721

%N Number of permutations of 2 indistinguishable copies of 1..n with exactly 2 adjacent element pairs in decreasing order.

%H Andrew Howroyd, <a href="/A151624/b151624.txt">Table of n, a(n) for n = 1..500</a>

%H <a href="/index/Rec#order_06">Index entries for linear recurrences with constant coefficients</a>, signature (15,-84,226,-309,207,-54).

%F a(n) = 6^n - (2*n + 1)*3^n + n*(2*n + 1). - _Andrew Howroyd_, May 06 2020

%F From _Colin Barker_, Jul 16 2020: (Start)

%F G.f.: x^2*(1 + 33*x - 33*x^2 - 81*x^3) / ((1 - x)^3*(1 - 3*x)^2*(1 - 6*x)).

%F a(n) = 15*a(n-1) - 84*a(n-2) + 226*a(n-3) - 309*a(n-4) + 207*a(n-5) - 54*a(n-6) for n>6.

%F (End)

%F E.g.f.: x*(3+2*x)*exp(x) - (1+6*x)*exp(3*x) + exp(6*x). - _G. C. Greubel_, Jun 19 2022

%t Table[6^n -(2*n+1)*3^n +n*(2*n+1), {n,40}] (* _G. C. Greubel_, Jun 19 2022 *)

%o (PARI) a(n) = {6^n - (2*n + 1)*3^n + n*(2*n + 1)} \\ _Andrew Howroyd_, May 06 2020

%o (PARI) Vec(x^2*(1 + 33*x - 33*x^2 - 81*x^3) / ((1 - x)^3*(1 - 3*x)^2*(1 - 6*x)) + O(x^25)) \\ _Colin Barker_, Jul 16 2020

%o (Magma) [(&+[(-1)^j*Binomial(2*n+1,2-j)*Binomial(j+2,2)^n: j in [0..2]]): n in [1..40]]; // _G. C. Greubel_, Jun 19 2022

%o (SageMath) [6^n -(2*n+1)*3^n +binomial(2*n+1,2) for n in (1..40)] # _G. C. Greubel_, Jun 19 2022

%Y Column k=2 of A154283.

%K nonn,easy

%O 1,3

%A _R. H. Hardin_, May 29 2009

%E Terms a(12) and beyond from _Andrew Howroyd_, May 06 2020

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 24 07:28 EDT 2024. Contains 371922 sequences. (Running on oeis4.)