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.

A293729 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 n > 2, P(n) is the closest lattice point at integer distance 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, and in case of a tie, maximize the angle t; a(n) = X-coordinate of P(n).

Table of values

n a(n)
1 0
2 1
3 1
4 0
5 0
6 1
7 1
8 0
9 0
10 1
11 -3
12 -3
13 -2
14 -2
15 -4
16 -4
17 -1
18 -1
19 -5
20 -5
21 -2
22 -3
23 -3
24 -2
25 -2
26 -3
27 -3
28 -2
29 -2
30 -3
31 1
32 1
33 0
34 0
35 2
36 2
37 -1
38 -1
39 3
40 3
41 -1
42 -1
43 0
44 0
45 -2
46 -5
47 -4
48 -4
49 -5
50 -5
51 -4
52 -4
53 -5
54 -1
55 -1
56 -6
57 -6
58 -3
59 -4
60 -4
61 -3
62 -3
63 -4
64 -4
65 -1
66 -2
67 -2
68 -1
69 -1
70 -2

List of values

[0, 1, 1, 0, 0, 1, 1, 0, 0, 1, -3, -3, -2, -2, -4, -4, -1, -1, -5, -5, -2, -3, -3, -2, -2, -3, -3, -2, -2, -3, 1, 1, 0, 0, 2, 2, -1, -1, 3, 3, -1, -1, 0, 0, -2, -5, -4, -4, -5, -5, -4, -4, -5, -1, -1, -6, -6, -3, -4, -4, -3, -3, -4, -4, -1, -2, -2, -1, -1, -2]