|
|
A190962
|
|
a(n) = 3*a(n-1) - 8*a(n-2), with a(0)=0, a(1)=1.
|
|
2
|
|
|
0, 1, 3, 1, -21, -71, -45, 433, 1659, 1513, -8733, -38303, -45045, 171289, 874227, 1252369, -3236709, -19729079, -33293565, 57951937, 440204331, 856997497, -950642157, -9707906447, -21518582085, 13107505321, 211471172643, 529553475361, -103108955061
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
LinearRecurrence[{3, -8}, {0, 1}, 50]
|
|
PROG
|
(PARI) x='x+O('x^30); concat([0], Vec(x/(1-3*x+8*x^2))) \\ G. C. Greubel, Jan 25 2018
(Magma) I:=[0, 1]; [n le 2 select I[n] else 3*Self(n-1) - 8*Self(n-2): n in [1..30]]; // G. C. Greubel, Jan 25 2018
|
|
CROSSREFS
|
Cf. A190958 (index to generalized Fibonacci sequences).
|
|
KEYWORD
|
sign,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|