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-5 of 5 results.

A287073 Positions of 0 in A287072.

Original entry on oeis.org

1, 5, 8, 10, 13, 17, 19, 22, 26, 29, 33, 35, 38, 42, 45, 47, 50, 54, 57, 61, 63, 66, 70, 73, 75, 78, 82, 84, 87, 91, 94, 96, 99, 103, 106, 110, 112, 115, 119, 122, 124, 127, 131, 133, 136, 140, 143, 147, 149, 152, 156, 159, 161, 164, 168, 170, 173, 177, 180
Offset: 1

Views

Author

Clark Kimberling, May 21 2017

Keywords

Crossrefs

Programs

  • Mathematica
    s = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {2, 1}, 2 -> 0}] &, {0}, 10] (* A287072 *)
    Flatten[Position[s, 0]] (* A287073 *)
    Flatten[Position[s, 1]] (* A287074 *)
    Flatten[Position[s, 2]] (* A287075 *)

A287074 Positions of 1 in A287072.

Original entry on oeis.org

2, 4, 7, 9, 12, 14, 16, 18, 21, 23, 25, 28, 30, 32, 34, 37, 39, 41, 44, 46, 49, 51, 53, 56, 58, 60, 62, 65, 67, 69, 72, 74, 77, 79, 81, 83, 86, 88, 90, 93, 95, 98, 100, 102, 105, 107, 109, 111, 114, 116, 118, 121, 123, 126, 128, 130, 132, 135, 137, 139, 142
Offset: 1

Views

Author

Clark Kimberling, May 21 2017

Keywords

Crossrefs

Programs

  • Mathematica
    s = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {2, 1}, 2 -> 0}] &, {0}, 10] (* A287072 *)
    Flatten[Position[s, 0]] (* A287073 *)
    Flatten[Position[s, 1]] (* A287074 *)
    Flatten[Position[s, 2]] (* A287075 *)

A287075 Positions of 2 in A287072.

Original entry on oeis.org

3, 6, 11, 15, 20, 24, 27, 31, 36, 40, 43, 48, 52, 55, 59, 64, 68, 71, 76, 80, 85, 89, 92, 97, 101, 104, 108, 113, 117, 120, 125, 129, 134, 138, 141, 145, 150, 154, 157, 162, 166, 171, 175, 178, 183, 187, 190, 194, 199, 203, 206, 211, 215, 220, 224, 227, 231
Offset: 1

Views

Author

Clark Kimberling, May 21 2017

Keywords

Crossrefs

Programs

  • Mathematica
    s = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {2, 1}, 2 -> 0}] &, {0}, 10] (* A287072 *)
    Flatten[Position[s, 0]] (* A287073 *)
    Flatten[Position[s, 1]] (* A287074 *)
    Flatten[Position[s, 2]] (* A287075 *)

A287106 Positions of 1 in A287104.

Original entry on oeis.org

1, 4, 6, 8, 10, 13, 15, 17, 20, 22, 25, 27, 29, 32, 34, 36, 38, 41, 43, 46, 48, 50, 53, 55, 57, 59, 62, 64, 66, 69, 71, 73, 75, 78, 80, 83, 85, 87, 90, 92, 94, 96, 99, 101, 103, 106, 108, 111, 113, 115, 118, 120, 122, 124, 127, 129, 131, 134, 136, 138, 140
Offset: 1

Views

Author

Clark Kimberling, May 21 2017

Keywords

Comments

From Michel Dekking, Sep 16 2019: (Start)
Let sigma be the defining morphism in A287104: 0->10, 1->12, 2->0.
Let u := 10, v := 12, w: = 120 be the return words of the word 1. [See Justin & Vuillon (2000) for definition of return word. - N. J. A. Sloane, Sep 23 2019]
Then
sigma(u) = vu, sigma(v) = w, sigma(w) = wu.
If we code w<->0, u<->1, v<->2, then this morphism turns into the morphism
0 -> 01, 1 -> 21, 2 -> 0.
This is exactly the morphism which has A287072 as unique fixed point.
Since u and v have length 2 and w has length 3, this implies that the sequence d of first differences of (a(n)) equals A287072 with the projection 0 -> 3, 1 -> 2, 2 -> 2. This gives the formula below.
(End)

Crossrefs

Cf. A287104, A287105, A287107. Closely related to A287072.

Programs

  • Mathematica
    s = Nest[Flatten[# /. {0 -> {1, 0}, 1 -> {1, 2}, 2 -> 0}] &, {0}, 10] (* A287104 *)
    Flatten[Position[s, 0]] (* A287105 *)
    Flatten[Position[s, 1]] (* A287106 *)
    Flatten[Position[s, 2]] (* A287107 *)

Formula

a(n) = 1 + Sum_{k=1..n-1} d(k), where d(k) = 3 if A287072(k)=0, and d(k) = 2 otherwise, for k = 1,...,n. - Michel Dekking, Sep 16 2019

A287107 Positions of 2 in A287104.

Original entry on oeis.org

2, 7, 11, 14, 18, 23, 26, 30, 35, 39, 44, 47, 51, 56, 60, 63, 67, 72, 76, 81, 84, 88, 93, 97, 100, 104, 109, 112, 116, 121, 125, 128, 132, 137, 141, 146, 149, 153, 158, 162, 165, 169, 174, 177, 181, 186, 190, 195, 198, 202, 207, 211, 214, 218, 223, 226, 230
Offset: 1

Views

Author

Clark Kimberling, May 21 2017

Keywords

Comments

From Michel Dekking, Sep 16 2019: (Start)
Let sigma be the defining morphism of A287104: 0->10, 1->12, 2->0.
Let u=201, v=2101, w=20101 be the return words of the word 2.
Under sigma u, v, and w are mapped to sigma(201) = 01012, sigma(2101) = 0121012, sigma(20101) = 010121012.
All three images have suffix 2. We can therefore move this suffix to the front of all three images, obtaining the fixed point (a(n+1)) = 20101... when iterating. This induces the morphism 3 -> 5, 4 -> 34, 5 -> 54 on the return words, coded by their lengths.
Coding the symbols according to 3<->2, 4<->1, 5<->0, this leads to the morphism 2->0, 1->21, 0->01 on the alphabet {0,1,2}. This is exactly the morphism which has A287072 as unique fixed point. So the sequence d of first differences of (a(n)) equals A287072 with the coding above. This gives the formula below.
(End)

Crossrefs

Programs

  • Mathematica
    s = Nest[Flatten[# /. {0 -> {1, 0}, 1 -> {1, 2}, 2 -> 0}] &, {0}, 10] (* A287104 *)
    Flatten[Position[s, 0]] (* A287105 *)
    Flatten[Position[s, 1]] (* A287106 *)
    Flatten[Position[s, 2]] (* A287107 *)

Formula

a(n) = 2 + Sum_{k=1..n-1} d(k), where d(k)=5 if A287072(k)=0, d(k)=4 if A287072(k)=1, and d(k)=3 if A287072(k)=2. - Michel Dekking, Sep 16 2019
Showing 1-5 of 5 results.