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”).

A155642
9^n - 5^n + 1.
19
1, 5, 57, 605, 5937, 55925, 515817, 4704845, 42656097, 385467365, 3477018777, 31332231485, 282185395857, 2540645125205, 22870688939337, 205860614516525, 1852867600961217, 16676418760213445, 150090820599733497
OFFSET
0,2
FORMULA
G.f.: 1/(1-9*x)-1/(1-5*x)+1/(1-x). E.g.f.: e^(9*x)-e^(5*x)+e^x.
a(n)=14*a(n-1)-45*a(n-2)+32 with a(0)=1, a(1)=5 [From Vincenzo Librandi, Jul 21 2010]
PROG
(PARI) a(n)=9^n-5^n+1 \\ Charles R Greathouse IV, Dec 22 2011
CROSSREFS
Sequence in context: A107339 A139260 A114466 * A322248 A277831 A333091
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 30 2009
STATUS
approved