OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (9,-6).
FORMULA
G.f.: x/(1-9*x+6*x^2). - Philippe Deléham, Oct 12 2011
E.g.f.: (2/sqrt(57))*exp(9*x/2)*sinh(sqrt(57)*x/2). - G. C. Greubel, Aug 26 2022
MATHEMATICA
LinearRecurrence[{9, -6}, {0, 1}, 50]
With[{s=Sqrt[57]}, Table[Simplify[(2^(-1-x) (4s (9+s)^x-(9-s)^x (171+ 23s)))/ (57(9+s))], {x, 30}]] (* Harvey P. Dale, Sep 01 2014 *)
PROG
(Magma) [n le 2 select n-1 else 9*Self(n-1) - 6*Self(n-2):n in [1..22]]; // Marius A. Burtea, Jan 22 2020
(Magma) R<x>:=PowerSeriesRing(Integers(), 22); [0] cat Coefficients(R!( x/(1-9*x+6*x^2))); // Marius A. Burtea, Jan 22 2020
(SageMath)
A190983 = BinaryRecurrenceSequence(9, -6, 0, 1)
[A190983(n) for n in (0..30)] # G. C. Greubel, Aug 26 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, May 24 2011
STATUS
approved