OFFSET
0,1
COMMENTS
LINKS
FORMULA
G.f.: (33647 - 33645*x)/((1 - x)*(1 - 3*x)). - Stefano Spezia, Jun 21 2022
MATHEMATICA
33648*3^Range[0, 30]-1 (* or *) LinearRecurrence[{4, -3}, {33647, 100943}, 30] (* Harvey P. Dale, Mar 03 2023 *)
PROG
(PARI) a(n) = 33648*3^n-1
(Python)
a = [33647]; [a.append(3*a[-1]+2) for n in range(21)]
print(a) # Michael S. Branicky, Jun 20 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Felix Fröhlich, Jun 20 2022
STATUS
approved