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.

A163256 Fractal sequence of the interspersion A163253.

Original entry on oeis.org

1, 2, 3, 1, 2, 4, 3, 5, 1, 2, 4, 6, 3, 5, 7, 1, 2, 4, 6, 8, 3, 5, 7, 9, 1, 2, 4, 6, 8, 10, 3, 5, 7, 9, 11, 1, 2, 4, 6, 8, 10, 12, 3, 5, 7, 9, 11, 13, 1, 2, 4, 6, 8, 10, 12, 14, 3, 5, 7, 9, 11, 13, 15, 1, 2, 4, 6, 8, 10, 12, 14, 16, 3, 5, 7, 9, 11, 13, 15, 17, 1, 2, 4, 6, 8, 10, 12, 14, 16, 18, 3, 5, 7
Offset: 1

Views

Author

Clark Kimberling, Jul 24 2009

Keywords

Comments

As a fractal sequence, A163256 contains every positive integer; indeed, A163256 properly contains itself (infinitely many times).

Examples

			Append the following segments:
  1 2 3
  1 2 4 3 5
  1 2 4 6 3 5 7
  1 2 4 6 8 3 5 7 9
For n>1, the n-th segment arises from the (n-1)st by inserting 2*n at position n+1 and appending 2*n+1 at position 2*n+1.
		

Crossrefs

Programs

  • Mathematica
    Flatten[FoldList[Append[Insert[#1, 2 #2, #2 + 1], 2 #2 + 1] &, {1}, Range[10]]] (* Birkas Gyorgy, Jul 09 2012 *)