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-1 of 1 results.

A293772 Let P be the sequence of distinct lattice points defined by the following rules: P(1) = (0,0), P(2) = (1,0), and for any i < j < k, P(k) does not lie on the vector (P(i), P(j)), and for any n > 2, P(n) is the closest lattice point to P(n-1) such that the angle of the vectors (P(n-2), P(n-1)) and (P(n-1), P(n)), say t, satisfies 0 < t <= Pi/2, and in case of a tie, minimize the angle t; a(n) = X-coordinate of P(n).

Original entry on oeis.org

0, 1, 1, 0, -1, -1, 0, 2, 2, 1, 0, -1, -2, -2, -1, 1, 3, 3, 2, 1, -1, -2, -3, -3, -2, -1, 1, 2, 4, 4, 3, 2, 0, -3, -4, -4, -3, -2, -1, 1, 2, 3, 4, 4, 3, 1, -2, -5, -5, -4, -1, 0, 1, 3, 4, 5, 5, 4, 3, 1, -2, -3, -6, -6, -5, -3, 0, 1, 2, 3, 4, 5, 5, 4, 2, -1, -4
Offset: 1

Views

Author

Rémy Sigrist, Oct 16 2017

Keywords

Comments

See A293773 for the corresponding Y-coordinates.
The following diagram depicts the angle t cited in the name:
. P(n)* .
. | t .
. | .
. | .
. |.
. P(n-1)*
. /
. /
. P(n-2)*
This sequence has building features in common with A293680.
The representation of the first thousands points of the sequence shows a spiral.

Examples

			See representation of first points in Links section.
		

Crossrefs

Programs

  • PARI
    See Links section.
Showing 1-1 of 1 results.