OFFSET
0,1
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
D. W. Boyd, Linear recurrence relations for some generalized Pisot sequences, Advances in Number Theory ( Kingston ON, 1991) 333-340, Oxford Sci. Publ., Oxford Univ. Press, New York, 1993
Index entries for linear recurrences with constant coefficients, signature (2, 0, -1).
FORMULA
G.f.: -(-4+3*x+3*x^2)/(x-1)/(x^2+x-1) = -2/(x-1)+(-x-2)/(x^2+x-1) . - R. J. Mathar, Nov 23 2007
MATHEMATICA
LinearRecurrence[{2, 0, -1}, {4, 5, 7}, 40] (* Jean-François Alcover, Dec 12 2016 *)
PROG
(PARI) pisotL(nmax, a1, a2) = {
a=vector(nmax); a[1]=a1; a[2]=a2;
for(n=3, nmax, a[n] = ceil(a[n-1]^2/a[n-2]));
a
}
pisotL(50, 4, 5) \\ Colin Barker, Aug 07 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved