login
A392084
a(n) = 3*a(n-1) + 2*3^n - 1, a(0) = 0.
3
0, 5, 32, 149, 608, 2309, 8384, 29525, 101696, 344453, 1151456, 3808661, 12488864, 40655237, 131531648, 423292757, 1355971712, 4326195461, 13753427360, 43584805013, 137727983840, 434104657925, 1365076092992, 4283514636629, 13415402982848, 41940786167429
OFFSET
0,2
COMMENTS
A recurrence relation that occurs in A391959.
FORMULA
a(n) = A391959(3^n).
From Stefano Spezia, Dec 31 2025: (Start)
a(n) = (3^n*(4*n - 1) + 1)/2.
G.f.: x*(5 - 3*x)/((1 - 3*x)^2*(1 - x)).
E.g.f.: exp(x)*(1 + exp(2*x)*(12*x - 1))/2. (End)
MATHEMATICA
LinearRecurrence[{7, -15, 9}, {0, 5, 32}, 26] (* Amiram Eldar, Dec 31 2025 *)
PROG
(Python)
def A392084(n):
if n == 0: return 0
else: return 3*A392084(n-1) + 2*3**n - 1
CROSSREFS
Cf. A391959.
Sequence in context: A359522 A001589 A271903 * A177467 A268153 A271153
KEYWORD
nonn,easy
AUTHOR
A.H.M. Smeets, Dec 30 2025
STATUS
approved