The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A307332 A fractal ternary sequence: For all n >= 1, underline the term with index n + a(n) + 1; then the two subsequences of underlined terms and of non-underlined terms are both equal to the sequence itself. 9
 2, 1, 0, 2, 2, 2, 1, 0, 2, 2, 1, 2, 2, 0, 1, 0, 2, 2, 2, 2, 1, 2, 2, 1, 0, 1, 2, 0, 2, 2, 2, 2, 2, 1, 2, 2, 0, 1, 0, 1, 1, 2, 0, 2, 2, 0, 2, 2, 2, 2, 1, 2, 2, 2, 0, 1, 0, 1, 2, 1, 2, 2, 1, 0, 2, 2, 2, 2, 0, 2, 2, 1, 2, 2, 0, 1, 2, 2, 1, 2, 0, 0, 1, 2, 1, 0, 2, 2, 2, 1, 2, 2, 2, 1, 0, 2, 2, 2, 2, 2, 2, 0, 2, 2, 1, 1, 2, 2, 2, 0, 1, 2 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,1 COMMENTS This is defined to be the lexicographically earliest ternary sequence with the following property: If a(n) = 0, underline a(n+1); if a(n) = 1, underline a(n+2) ; if a(n) = 2, underline a(n+3). Now, the subsequence of (once or more) underlined terms must be equal to the original sequence (copy #1), and the subsequence of non-underlined terms must also reproduce the original sequence (copy #2). LINKS Carole Dubois, Table of n, a(n) for n = 1..2001 EXAMPLE The sequence starts (2, 1, 0, 2, 2, 2, 1, 0, 2, 2, 1, 2, 2, 0, 1, 0,...) Instead of underlining terms, we will put parentheses around the terms we want to emphasize: a(1) = 2 produces parentheses around a(1 + 3 = 4): 2, 1, 0, (2), 2, 2, 1, 0, 2, 2, 1, 2, 2, 0, 1, 0,... a(2) = 1 produces parentheses around a(2 + 2 = 4), which is now already done. Then, a(3) = 0 produces parentheses around a(3 + 1 = 4), which is already done. Then, a(4) = 2 produces parentheses around a(4 + 3 = 7): 2, 1, 0, (2), 2, 2, (1), 0, 2, 2, 1, 2, 2, 0, 1, 0,... a(5) = 2 produces parentheses around a(5 + 3 = 8): 2, 1, 0, (2), 2, 2, (1), (0), 2, 2, 1, 2, 2, 0, 1, 0,... a(6) = 2 produces parentheses around a(6 + 3 = 9): 2, 1, 0, (2), 2, 2, (1), (0), (2), 2, 1, 2, 2, 0, 1, 0,... a(7) = 1 produces parentheses around a(7 + 2 = 9), which is already done. Then, a(8) = 0 produces parentheses around a(8 + 1 = 9) - already done. Then, a(9) = 2 produces parentheses around a(9 + 3 = 12): 2, 1, 0, (2), 2, 2, (1), (0), (2), 2, 1, (2), 2, 0, 1, 0,... a(10) = 2 produces parentheses around a(10 + 3 = 13): 2, 1, 0, (2), 2, 2, (1), (0), (2), 2, 1, (2), (2), 0, 1, 0,... a(11) = 1 produces parentheses around a(11 + 2 = 13) - already done. Then, a(12) = 2 produces parentheses around a(12 + 3 = 15): 2, 1, 0, (2), 2, 2, (1), (0), (2), 2, 1, (2), (2), 0, (1), 0,... a(13) = 2 produces parentheses around a(13 + 3 = 16): 2, 1, 0, (2), 2, 2, (1), (0), (2), 2, 1, (2), (2), 0, (1), (0),... and so on. We see in this small example that the parenthesized terms reproduce the initial sequence: (2),(1),(0),(2),(2),(2),(1),(0),... The same is true for the subsequence of non-parenthesized terms: 2, 1, 0, 2, 2, 2, 1, 0,... CROSSREFS Cf. A307183 (first binary example of such fractal sequences), A307333 (quaternary), A307335 (quinary), A307336 (senary), A307337 (septuary), A307338 (octal), A307339 (nonary), A307340 (decimal). Sequence in context: A190775 A282459 A016154 * A275409 A029343 A137992 Adjacent sequences:  A307329 A307330 A307331 * A307333 A307334 A307335 KEYWORD base,nonn AUTHOR Eric Angelini and Carole Dubois, Apr 02 2019 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.

Last modified January 28 13:27 EST 2020. Contains 331321 sequences. (Running on oeis4.)