OFFSET
1,1
COMMENTS
A correspondent asked if this sequence was (apart from the initial terms) the same as the Fibonacci word A003842. It is not.
Period 7: repeat [2, 1, 2, 1, 2, 1, 1]. - Paolo Xausa, Jan 09 2025
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,1).
FORMULA
G.f.: (2 + x + 2*x^2 + x^3 + 2*x^4 + x^5 + x^6)/(1 - x^7). - Stefano Spezia, Jan 29 2025
MATHEMATICA
PadRight[{}, 100, {2, 1, 2, 1, 2, 1, 1}] (* Paolo Xausa, Jan 08 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Apr 02 2011
STATUS
approved
