OFFSET
0,2
LINKS
FORMULA
a(n) = (9^(n+1) - 7^(n+1))/2 = A081202(n+1). Binomial transform of A081034. - R. J. Mathar, Sep 18 2008
From Vincenzo Librandi, Feb 09 2011: (Start)
a(n) = 9*a(n-1) + 7^n, with a(0)=1.
a(n) = 16*a(n-1) - 63*a(n-2), n >= 2. (End)
E.g.f.: exp(7*x)*(9*exp(2*x) - 7)/2. - Stefano Spezia, Jul 23 2024
MATHEMATICA
Join[{a=1, b=16}, Table[c=16*b-63*a; a=b; b=c, {n, 40}]] (* Vladimir Joseph Stephan Orlovsky, Feb 08 2011 *)
CoefficientList[Series[1/((1-7x)(1-9x)), {x, 0, 30}], x] (* or *) LinearRecurrence[ {16, -63}, {1, 16}, 30] (* Harvey P. Dale, Mar 11 2013 *)
PROG
(PARI) a(n)=(9^n++-7^n)/2 \\ Charles R Greathouse IV, Sep 24 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
a(18)-a(20) from Stefano Spezia, Jul 23 2024
STATUS
approved