OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Hacène Belbachir and El-Mehdi Mehiri, Counting elementary moves in the optimal solution of the Tower of Hanoi problem, Bull. Math. Soc. Sci. Math. Roumanie 68(116) (2) (2025), 127-148. See pp. 130, 142 (Remark 2).
Index entries for linear recurrences with constant coefficients, signature (6,-9,4).
FORMULA
a(n) = 2*(4^(n+1)-3n-4)/9 = 2*A014825(n). - R. J. Mathar, Oct 21 2008
G.f.: 2*x/((1-x)^2*(1-4*x)). - Colin Barker, Jan 11 2012
a(n) = 6*a(n-1)-9*a(n-2)+4*a(n-3), for n>2, with {a(k)}={0,2,12}, k=0,1,2. - L. Edson Jeffery, Mar 01 2012
a(n) = A302757(n+1) - 1. - Hugo Pfoertner, Feb 04 2026
MATHEMATICA
lst={}; s=0; Do[s+=(s+=n+s); AppendTo[lst, s], {n, 0, 5!}]; lst
Accumulate[LinearRecurrence[{5, -4}, {0, 2}, 30]] (* or *) LinearRecurrence[ {6, -9, 4}, {0, 2, 12}, 30] (* Harvey P. Dale, Sep 25 2013 *)
PROG
(PARI) a(n)=(8*4^n-6*n-8)/9 \\ Charles R Greathouse IV, May 30 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Oct 18 2008
EXTENSIONS
Edited by R. J. Mathar, Oct 21 2008
STATUS
approved
