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.

A229217 If 1 and 2 represent the 2D vectors (1,0) and (0,1) and -1 and -2 are the negation of these vectors, then this sequence represents the Koch curve.

Original entry on oeis.org

1, 2, 1, -2, 1, 2, -1, 2, 1, 2, 1, 2, 1, -2, 1, -2, 1, -2, -1, -2, 1, 2, 1, -2, 1, 2, -1, 2, 1, 2, -1, -2, -1, 2, -1, 2, -1, 2, 1, 2, 1, 2, 1, -2, 1, 2, -1, 2, 1, 2, 1, 2, 1, -2, 1, 2, -1, 2, 1, 2, 1, 2, 1, -2, 1, -2, 1, -2, -1, -2, 1, 2, 1, -2, 1, -2, 1, -2, -1, -2, 1, 2, 1, -2, 1, -2, 1, -2, -1, -2, -1, -2, -1, 2, -1, -2, 1, -2, -1, -2, 1, 2, 1, -2, 1, 2, -1
Offset: 1

Views

Author

Arie Bos, Sep 25 2013

Keywords

Comments

The sequence is generated by the rewriting rules:
P(1) = 1,2,1,-2,1;
P(2) = 2,-1,2,1,2 and
P(-1) = -1,-2,-1,2,-1;
P(-2) = -2,1,-2,-1,-2, so P(-x)=-P(x).
The start is 1.

Examples

			Start with 1, you get
in the first step 1,2,1,-2,1, and
in the 2nd step 1,2,1,-2,1,2,-1,2,1,2,1,2,1,-2,1,-2,1,-2,-1,-2,1,2,1,-2,1.
With each step the length increases by a factor 5.
		

Crossrefs

Coordinates: A332249, A332250.