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.

Showing 1-2 of 2 results.

A337293 a(n) is the squared distance to the origin of the n-th vertex on an acute angled Babylonian spiral.

Original entry on oeis.org

0, 1, 1, 1, 2, 2, 5, 1, 8, 8, 5, 17, 1, 26, 0, 29, 5, 25, 25, 18, 34, 5, 50, 1, 49, 17, 18, 52, 5, 85, 2, 90, 18, 61, 125, 13, 148, 10, 153, 20, 98, 125, 41, 145, 4, 148, 18, 85, 170, 18, 225, 148, 202, 173, 61, 197, 41, 226, 10, 229, 25, 117, 170, 5, 208, 80
Offset: 0

Views

Author

John Bailey, Aug 21 2020

Keywords

Comments

An acute angled Babylonian spiral is constructed by starting with a zero vector and progressively concatenating the next longest vector with integral endpoints on a Cartesian grid. (The squares of the lengths of these vectors are A001481.) The direction of the new vector is chosen to maximize the change in direction from the previous vector. The Babylonian spiral (A256111) minimizes this angle.

Examples

			The coordinates of the first few points are (0,0), (0,1), (1,0), (-1,0), (1,1), (-1,-1), (-1,2).
		

Crossrefs

x-coordinates given in A337311. y-coordinates given in A337312.

Programs

  • Python
    # See Bailey link.

Formula

a(n) = A337311(n)^2 + A337312(n)^2.

A337311 List of successive x-coordinates in the acute angled Babylonian spiral.

Original entry on oeis.org

0, 0, 1, -1, 1, -1, -1, 0, -2, 2, -2, 1, -1, -1, 0, -2, 2, -3, 3, -3, 3, -2, 1, 1, 0, 4, -3, 4, -2, -2, -1, -3, 3, -5, 2, -2, -2, -1, -3, 2, -7, 2, -5, 1, 0, -2, 3, -7, 1, -3, -9, 2, -9, 2, -6, 1, -5, -1, -1, -2, 3, -9, 1, -2, -8, 4, -5, 3, -2, -1, 1, -2, 4
Offset: 1

Views

Author

John Bailey, Aug 22 2020

Keywords

Crossrefs

Showing 1-2 of 2 results.