login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A107337 Substitution 1->{1, 2, 1, 3, 2, 3, 1}, 2->{3}, 3->{1}, starting with 1. 1
1, 2, 1, 3, 2, 3, 1, 3, 1, 2, 1, 3, 2, 3, 1, 1, 3, 1, 1, 2, 1, 3, 2, 3, 1, 1, 1, 2, 1, 3, 2, 3, 1, 3, 1, 2, 1, 3, 2, 3, 1, 1, 3, 1, 1, 2, 1, 3, 2, 3, 1, 1, 2, 1, 3, 2, 3, 1, 1, 1, 2, 1, 3, 2, 3, 1, 1, 2, 1, 3, 2, 3, 1, 3, 1, 2, 1, 3, 2, 3, 1, 1, 3, 1, 1, 2, 1, 3, 2, 3, 1, 1, 2, 1, 3, 2, 3, 1, 1, 2, 1, 3, 2, 3, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

Original name was: 223 Pisot cubic substitution with characteristic polynomial: x^3-3*x^2-2*x-2.

LINKS

Table of n, a(n) for n=0..104.

EXAMPLE

Start: 1

Rules:

  1 --> 1213231

  2 --> 3

  3 --> 1

-------------

0:   (#=1)

  1

1:   (#=7)

  1213231

2:   (#=25)

  1213231312132311311213231

3:   (#=91)

  1213231312132311311213231112132313121323113112132311213231112132311213231312132311311213231

4:   (#=337)

  12132313121323113112132311121323131213231131121323112132 ...

MATHEMATICA

s[1] = {1, 2, 1, 3, 2, 3, 1}; s[2] = {3}; s[3] = {1}; t[a_] := Flatten[s /@ a]; p[0] = {1}; p[1] = t[p[0]]; p[n_] := t[p[n - 1]] aa = p[4]

PROG

(Python)

from itertools import chain

A107337 = [1]

for _ in range(4):

....A107337 = list(chain.from_iterable(([1, 2, 1, 3, 2, 3, 1] if d == 1 else [3] if d == 2 else [1] for d in A107337)))

# Chai Wah Wu, Sep 03 2014

CROSSREFS

Sequence in context: A304099 A293390 A189231 * A066376 A151682 A318928

Adjacent sequences:  A107334 A107335 A107336 * A107338 A107339 A107340

KEYWORD

nonn,easy

AUTHOR

Roger L. Bagula, May 22 2005

EXTENSIONS

Edited by Joerg Arndt, Jun 26 2011

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 26 23:07 EDT 2019. Contains 321566 sequences. (Running on oeis4.)