A188512 Lengths of successive runs of identical terms in A188511.
2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2
Offset: 1
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).
Programs
-
Mathematica
PadRight[{}, 100, {2, 1, 2, 1, 2, 1, 1}] (* Paolo Xausa, Jan 08 2025 *)
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
Comments