OFFSET
0,3
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (9,-8).
FORMULA
a(0) = 0; a(1) = 1; a(n) = 8*a(n-1) + 5, for n > 1.
From Elmo R. Oliveira, Mar 12 2026: (Start)
G.f.: x*(4*x + 1)/((x - 1)*(8*x - 1)).
E.g.f.: (7 - 10*exp(x) + 3*exp(8*x))/14.
a(n) = 9*a(n-1) - 8*a(n-2) for n > 2.
a(n) = (3*8^n - 10)/14 for n > 0. (End)
EXAMPLE
For n >= 1, the binary representation of a(n) is 1 followed by (101 repeated n-1 times).
E.g., a(5) = 7021 = (1 101 101 101 101)_2.
MATHEMATICA
Join[{0}, NestList[8*# + 5 &, 1, 25]]
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo Xausa, Jan 10 2025
STATUS
approved
