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.

Previous Showing 11-13 of 13 results.

A276757 Infinite Fibonacci word on the alphabet {1,2,3,4,5}.

Original entry on oeis.org

1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2
Offset: 1

Views

Author

Michel Dekking, Sep 17 2016

Keywords

Comments

Start with the infinite Fibonacci word A003849, which is 0100101001001010010... and replace each 0 by 1,2,3 and each 1 by 4,5.
The unique fixed point of the 4-block Fibonacci substitution 1 -> 12, 2 -> 3, 3 -> 45, 4 -> 12, 5 -> 3. Here the 4-blocks are coded as 0100 <-> 1, 1001 <-> 2, 0010 <-> 3, 0101 <-> 4, 1010 <-> 5.

Crossrefs

Formula

Let A(n) = floor(n*phi), B(n) = n + floor(n*phi), i.e., A and B are the lower and upper Wythoff sequences, A = A000201, B = A001950. Then a(n) = 1 if n = A(A(A(k))) for some k; a(n) = 2 if n = B(A(k)) for some k; a(n) = 3 if n = A(B(k)) for some k; a(n) = 4 if n = A(A(B(k))) for some k; a(n) = 5 if n = B(B(k)) for some k.

A267860 An infinite ternary 3-Fibonacci sequence (replace each 00 factor of the Fibonacci word with 020).

Original entry on oeis.org

0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1
Offset: 0

Views

Author

Mahdi Saleh, Apr 07 2016

Keywords

Comments

A word constructed by replacing each 00 factor of the Fibonacci word (A003849) with 020. The obtained ternary sequence is a word with Sturmian erasures (by removing each word,the obtained binary sequence is Sturmian)[1]. By removing each of 0's or 2's, the set of replacements on the Fibonacci word, is equal to the morphisms of deriving the Fibonacci word [2]. So the obtained binary word by removing each of 0's,1's or 2's is the Fibonacci word. Since the slope of the sequential projection (sending for example one letter to 1 and all the others to 0) is 1, the factor complexity of this ternary word for each integer n>0, is n+2.[3]
The binary sequence obtained by removing all 0's from the 3-Fibonacci word: 1,2,1,1,2,1,2,1,1,2,1,2,1,1,2,1,...
From Michel Dekking, Oct 19 2016: (Start)
The sequence (a(n)) is fixed point of the morphism zeta given by zeta: 0->01, 1->02, 2->epsilon.
Here epsilon is the empty word. To see this, code the 0’s in the Fibonacci sequence followed by 0 by 5, and the 0’s followed by 1 by 6. Then add 2 after 5. This gives the morphism 1->52, 5->61, 6->61, 2->epsilon. Then injectivize, i.e., map 5 and 6 to 0.
The sequence (a(n)) is related to A108103. Let theta be the standard form of zeta: theta(1)=12, theta(2)=13, theta(3)=epsilon. Let psi be the morphism generating the version of A108103 with 2 and 3 interchanged, psi: 1->2, 2->131, 3->1. Then the unique fixed point of theta is different from the fixed points of psi, but theta and psi generate the same language, i.e., arbitrarily long words occurring in the fixed point of theta occur in the fixed points of psi. This is a nontrivial exercise (prove that 2 theta^{2n}(1) = psi^{2n}(2) 13 for all n>0).
The sequence (a(n)) is not related to A270788, which might be called the ternary Fibonacci sequence. The dynamical system generated by (a(n)) has an eigenvalue -1, whereas the system generated by A270788 is isomorphic to the Fibonacci dynamical system. (End)
The asymptotic density of the occurrences of 0, 1, and 2 is 1/2, 1/(2*phi) = A019827, and 1/(2*phi^2) = A187426 / 10, respectively, where phi is the golden ratio (A001622). The asymptotic mean of this sequence is (3-phi)/2 (A187798). - Amiram Eldar, May 28 2024

Crossrefs

Programs

  • Mathematica
    SubstitutionSystem[{0->{0,1}, 1->{0,2}, 2->{}}, {0}, {10}][[1]] (* Paolo Xausa, May 17 2024 *)

A242082 Nim sequence of game on n counters whose legal moves are removing some number of counters in A027941.

Original entry on oeis.org

0, 1, 0, 1, 2, 0, 1, 0, 1, 2, 0, 1, 2, 0, 1, 0, 1, 2, 0, 1, 0, 1, 2, 0, 1, 2, 0, 1, 0, 1, 2, 0, 1, 2, 0, 1, 0, 1, 2, 0, 1, 0, 1, 2, 0, 1, 2, 0, 1, 0, 1, 2, 0, 1, 0, 1, 2, 0, 1, 2, 0, 1, 0, 1, 2, 0, 1, 2, 0, 1, 0, 1, 2, 0, 1, 0, 1, 2, 0, 1, 2, 0, 1, 0, 1, 2, 0, 1, 2, 0, 1, 0, 1, 2, 0, 1, 0, 1, 2, 0
Offset: 0

Views

Author

Nathan Fox, May 03 2014

Keywords

Comments

Aperiodic, ternary sequence.
Result of applying the map 0->01, 1->2 to A188432.
Let w(1)=01. For all i>1, let w(i)=w(i-1)w(i-1)w(i-2)...w(2)w(1)2 (as a concatenation of words). The limit of this process is this sequence.
Also the Nim sequence of game on n counters whose legal moves are removing either 1 counter or some number of counters in A089910.
a(n+2) = A159917(n), the infinite Fibonacci sequence on {0,1,2}. See also the standard form A270788 of A159917, explaining the formula below. - Michel Dekking, Dec 27 2016

Crossrefs

Formula

a(n)=0 if and only if n=0 or n is in A001950.
a(n)=1 if and only if a(n-1)=0, which happens if and only if n is in A026352.
a(n)=2 if and only if n is in A089910.
Previous Showing 11-13 of 13 results.