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.

Showing 1-1 of 1 results.

A376637 The word 1 belongs to the sequence, and whenever a word w belongs to the sequence, then the words consisting of 1's and 2's whose run lengths transform equals w also belong to the sequence.

Original entry on oeis.org

1, 2, 11, 12, 21, 22, 112, 122, 211, 221, 1121, 1122, 1211, 2122, 2211, 2212, 11221, 12112, 12211, 12212, 21121, 21122, 21221, 22112, 112212, 121122, 212211, 221121, 1121122, 1121221, 1122122, 1211221, 1221121, 1221211, 2112122, 2112212, 2122112, 2211211
Offset: 1

Views

Author

Rémy Sigrist, Sep 30 2024

Keywords

Comments

This sequence lists finite smooth words: finite words w composed of 1's and 2's without three or more consecutive equal digits, such that for any k > 0, the k-th iterate of the run lengths transform of w is also a word composed of 1's and 2's without three or more consecutive equal digits.

Examples

			The first terms, alongside their run lengths transform, are:
  n   a(n)  RL(a(n))
  --  ----  --------
   1     1         1
   2     2         1
   3    11         2
   4    12        11
   5    21        11
   6    22         2
   7   112        21
   8   122        12
   9   211        12
  10   221        21
  11  1121       211
  12  1122        22
  13  1211       112
  14  2122       112
  15  2211        22
  16  2212       211
		

Crossrefs

Programs

  • PARI
    \\ See Links section.
Showing 1-1 of 1 results.