OFFSET
0,1
COMMENTS
a(n) = 2*A086224(n-1) for n > 0 [Berselli - Librandi]. - Vincenzo Librandi, Aug 27 2010
LINKS
FORMULA
a(n) = 2*(a(n-1) + 1) with a(0)=5.
From R. J. Mathar, May 02 2010: (Start)
a(n)= 3*a(n-1) - 2*a(n-2).
G.f.: ( 5-3*x ) / ( (2*x-1)*(x-1) ). (End)
a(n) = A174317(n+3). - R. J. Mathar, Feb 21 2016
EXAMPLE
a(1) = 2*(5 + 1) = 12;
a(2) = 2*(12 + 1) = 26;
a(3) = 2*(26 + 1) = 54.
MATHEMATICA
Table[7*2^n-2, {n, 0, 30}] (* or *) LinearRecurrence[{3, -2}, {5, 12}, 30] (* Harvey P. Dale, May 21 2017 *)
PROG
(Magma) [7*2^n-2: n in [0..100]]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Apr 18 2010
STATUS
approved