A185346 a(n) = 2^n - 9.
-8, -7, -5, -1, 7, 23, 55, 119, 247, 503, 1015, 2039, 4087, 8183, 16375, 32759, 65527, 131063, 262135, 524279, 1048567, 2097143, 4194295, 8388599, 16777207, 33554423, 67108855, 134217719, 268435447, 536870903, 1073741815, 2147483639, 4294967287, 8589934583
Offset: 0
Links
- G. C. Greubel, Table of n, a(n) for n = 0..1000
- Index entries for linear recurrences with constant coefficients, signature (3,-2).
Programs
-
Maple
A185346:=n->2^n-9: seq(A185346(n), n=0..50); # Wesley Ivan Hurt, Jun 28 2017
-
Mathematica
Table[2^n - 9, {n, 0, 40}] (* T. D. Noe, Dec 04 2012 *)
-
PARI
a(n)=2^n-9 \\ Charles R Greathouse IV, Oct 07 2015
Formula
G.f.: ( -8+17*x ) / ( (2*x-1)*(x-1) ). - R. J. Mathar, Dec 17 2012
E.g.f.: exp(2*x) - 9*exp(x). - G. C. Greubel, Jun 28 2017
From Elmo R. Oliveira, Nov 08 2023: (Start)
a(n) = 2*a(n-1) + 9 with a(0) = -8.
a(n) = 3*a(n-1) - 2*a(n-2) for n > 1. (End)