login
A156127
a(n) = 7*2^n - 3.
4
4, 11, 25, 53, 109, 221, 445, 893, 1789, 3581, 7165, 14333, 28669, 57341, 114685, 229373, 458749, 917501, 1835005, 3670013, 7340029, 14680061, 29360125, 58720253, 117440509, 234881021, 469762045, 939524093, 1879048189, 3758096381
OFFSET
0,1
FORMULA
a(n) = 2*a(n-1) + 3 with n > 0, a(0)=4.
G.f.: ( 4-x ) / ( (2*x-1)*(x-1) ). - R. J. Mathar, Oct 13 2011
MATHEMATICA
LinearRecurrence[{3, -2}, {4, 11}, 40] (* Vincenzo Librandi, Mar 01 2012 *)
PROG
(Magma) I:=[4, 11]; [n le 2 select I[n] else 3*Self(n-1)-2*Self(n-2): n in [1..40]]; // Vincenzo Librandi, Mar 01 2012
(PARI) a(n)=7*2^n-3 \\ Charles R Greathouse IV, Oct 16 2015
CROSSREFS
Sequence in context: A209232 A266337 A262158 * A178742 A202088 A328937
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Feb 08 2009
EXTENSIONS
Corrected by R. J. Mathar, Oct 13 2011
STATUS
approved