cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A214217 List of singular subwords (or factors) of the Fibonacci word A003842.

Original entry on oeis.org

2, 11, 212, 11211, 21211212, 1121121211211, 212112121121121211212, 1121121211211212112121121121211211, 2121121211211212112121121121211211212112121121121211212, 11211212112112121121211211212112112121121211211212112121121121211211212112121121121211211
Offset: 1

Views

Author

N. J. A. Sloane, Jul 10 2012

Keywords

Comments

Complementing the first and last digits of each term gives (essentially) A214216.

Crossrefs

Programs

  • Mathematica
    nxt[{a_,b_,c_}]:={b,c,FromDigits[Join[Flatten[IntegerDigits/@{b,a,b}]]]}; NestList[nxt,{2,11,212},10][[All,1]] (* Harvey P. Dale, May 24 2018 *)

Formula

a(0)=2, a(1)=11, a(2)=212; thereafter a(n)=the concatenation of a(n-2), a(n-3), and a(n-2). [clarified by Harvey P. Dale, May 24 2018]