OFFSET
0,1
COMMENTS
a(n)=BA^(n)B(1), n>=0, with compositions of Wythoff's complementary A(n):=A000201(n) and B(n)=A001950(n) sequences. See the W. Lang link under A135817 for the Wythoff representation of numbers (with A as 1 and B as 0 and the argument 1 omitted). E.g. 5=`00`, 7=`010`, 10=`0110`, 15=`01110`,..., in Wythoff code.
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,0,-1).
FORMULA
a(n) = Fibonacci(n+4)+2 = A157725(n+4).
a(n) = 2*a(n-1) - a(n-3).
a(n) = A020743(n-1), n>0. - R. J. Mathar, Oct 15 2008
G.f.: (5 - 3*x - 4*x^2)/((1 - x)*(1 - x - x^2)). - Elmo R. Oliveira, Apr 17 2026
E.g.f.: 2*exp(x) + exp(x/2)*(15*cosh(sqrt(5)*x/2) + 7*sqrt(5)*sinh(sqrt(5)*x/2))/5. - Stefano Spezia, Apr 19 2026
MATHEMATICA
LinearRecurrence[{2, 0, -1}, {5, 7, 10}, 40] (* Harvey P. Dale, Oct 02 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, 5, 7) \\ Colin Barker, Aug 07 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
