login
A155627
a(n) = 6^n - 4^n + 1.
13
1, 3, 21, 153, 1041, 6753, 42561, 263553, 1614081, 9815553, 59417601, 358602753, 2160005121, 12993585153, 78095728641, 469111242753, 2816814940161, 16909479575553, 101491237191681, 609084862103553, 3655058928435201
OFFSET
0,2
FORMULA
O.g.f.: 1/(1 - 6*x) - 1/(1 - 4*x) + 1/(1 - x).
E.g.f.: exp(6*x) - exp(4*x) + exp(x).
a(n) = 10*a(n-1)-24*a(n-2)+15 with a(0)=1, a(1)=3 - Vincenzo Librandi, Jul 21 2010
MATHEMATICA
Table[6^n - 4^n + 1, {n, 0, 25}] (* Paolo Xausa, Jun 26 2024 *)
PROG
(PARI) a(n)=6^n-4^n+1 \\ Charles R Greathouse IV, Jun 11 2015
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Jan 29 2009
STATUS
approved