OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (10,-27,18).
FORMULA
G.f.: 1/(1-6*x)-1/(1-3*x)+1/(1-x). E.g.f.: e^(6*x)-e^(3*x)+e^x.
a(n)=9*a(n-1)-18*a(n-2)+10 with a(0)=1, a(1)=4 [From Vincenzo Librandi, Jul 21 2010]
E.g.f.: exp(6*x)-exp(3*x)+exp(x)= G(0) ; G(k)= 1 - 1/( 2^k + 2^k/( 3^k - 1 - 6*x*18^k/( x*6^(k+1)+(k+1)/G(k+1)))); (continued fraction, 3-step ). - Sergei N. Gladkovskii, Jan 10 2012
PROG
(PARI) a(n)=6^n-3^n+1 \\ Charles R Greathouse IV, Jan 09 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 26 2009
STATUS
approved