login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A165147
a(n) = (3*7^n-3^n)/2.
2
1, 9, 69, 501, 3561, 25089, 176109, 1234221, 8643921, 60520569, 423683349, 2965901541, 20761665081, 145332718449, 1017332217789, 7121335090461, 49849374331041, 348945706410729, 2442620203155429, 17098342196928981
OFFSET
0,2
COMMENTS
Partial sums are in A016138.
Binomial transform of A016129. Inverse binomial transform of A165148.
FORMULA
a(n) = 10*a(n-1)-21*a(n-2) for n > 1; a(0) = 1, a(1) = 9.
G.f.: (1-x)/((1-3*x)*(1-7*x)).
MATHEMATICA
LinearRecurrence[{10, -21}, {1, 9}, 25] (* Paolo Xausa, Apr 22 2024 *)
PROG
(Magma) [ (3*7^n-3^n)/2: n in [0..19] ];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Sep 15 2009
STATUS
approved