OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Eric Weisstein's World of Mathematics, Pisot Number.
Index entries for linear recurrences with constant coefficients, signature (0,1,1).
FORMULA
G.f.: (1+x+x^2+x^9+x^10-x^12)/(1-x^2-x^3).
From Jwalin Bhatt, Mar 26 2025: (Start)
a(n) = round(((1/2+sqrt(23/108))^(1/3) + (1/2-sqrt(23/108))^(1/3))^n).
a(n) = a(n-2) + a(n-3) for n>=13. (End)
MATHEMATICA
CoefficientList[Series[(1+x+x^2+x^9+x^10-x^12)/(1-x^2-x^3), {x, 0, 100}], x] (* Vincenzo Librandi, Aug 19 2012 *)
r = Root[x^3-x-1, 1]; Table[Round[r^i], {i, 0, 100 }] (* Jwalin Bhatt, Mar 27 2025 *)
PROG
(PARI)
default(realprecision, 110);
default(format, "g.15");
r=real(polroots(x^3-x-1)[1])
v=vector(66, n, round(r^(n-1)) )
(PARI) Vec((1+x+x^2+x^9+x^10-x^12)/(1-x^2-x^3)+O(x^66))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Joerg Arndt, Jan 29 2012
STATUS
approved
