A080675 a(n) = (5*4^n - 8)/6.
2, 12, 52, 212, 852, 3412, 13652, 54612, 218452, 873812, 3495252, 13981012, 55924052, 223696212, 894784852, 3579139412, 14316557652, 57266230612, 229064922452, 916259689812, 3665038759252, 14660155037012, 58640620148052, 234562480592212, 938249922368852
Offset: 1
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..170
- Andrei Asinowski, Cyril Banderier, Benjamin Hackl, On extremal cases of pop-stack sorting, Permutation Patterns (Zürich, Switzerland, 2019).
- Index entries for linear recurrences with constant coefficients, signature (5,-4).
Crossrefs
Programs
-
Magma
[(5*4^n-8)/6: n in [1..40] ]; // Vincenzo Librandi, Apr 28 2011
-
Mathematica
(5*4^Range[30]-8)/6 (* or *) LinearRecurrence[{5,-4},{2,12},30] (* Harvey P. Dale, Oct 16 2012 *)
-
PARI
a(n)=(5*4^n-8)/6 \\ Charles R Greathouse IV, Oct 07 2015
Formula
a(1)=2, a(2)=12, a(n)=5*a(n-1)-4*a(n-2). - Harvey P. Dale, Oct 16 2012
Extensions
Further comments added by Antti Karttunen, Sep 14 2006
Comments