|
| |
|
|
A080424
|
|
a(n)=3*a(n-1)+18*a(n-2), a(0)=0, a(1)=1.
|
|
6
| |
|
|
0, 1, 3, 27, 135, 891, 5103, 31347, 185895, 1121931, 6711903, 40330467, 241805655, 1451365371, 8706597903, 52244370387, 313451873415, 1880754287211, 11284396583103, 67706766919107, 406239439253175, 2437440122303451
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,3
|
|
|
LINKS
| Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for sequences related to linear recurrences with constant coefficients, signature (3,18).
|
|
|
FORMULA
| G.f.: x/((1+3*x)*(1-6*x)).
a(n)=(6^n-(-3)^n)/9.
a(n+1)= 6*a(n) + (-3)^n. - Paul Curtz, Jun 07 2011
|
|
|
MATHEMATICA
| Join[{a=0, b=1}, Table[c=3*b+18*a; a=b; b=c, {n, 60}]] (*From Vladimir Joseph Stephan Orlovsky, Feb 01 2011*)
f[n_] := (6^n - (-3)^n)/9; Array[f, 22, 0] (* Robert G. Wilson v, Aug 13 2011 *)
|
|
|
PROG
| (PARI) a(n)=(6^n-(-3)^n)/9 \\ Charles R Greathouse IV, Jun 10 2011
(MAGMA)[(6^n-(-3)^n)/9: n in [0..30]]; // Vincenzo Librandi, Aug 13 2011
|
|
|
CROSSREFS
| Cf. A079773, A051958, A015441.
Sequence in context: A063263 A204809 A034200 * A001796 A174613 A127509
Adjacent sequences: A080421 A080422 A080423 * A080425 A080426 A080427
|
|
|
KEYWORD
| easy,nonn
|
|
|
AUTHOR
| Paul Barry (pbarry(AT)wit.ie), Feb 24 2003
|
| |
|
|