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.

A337108 Square spiral constructed by greedy algorithm, so that each diagonal and antidiagonal contains distinct numbers.

Table of values

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

List of values

[0, 0, 1, 1, 1, 0, 2, 1, 2, 2, 0, 2, 3, 3, 2, 3, 3, 2, 0, 2, 4, 3, 1, 3, 4, 4, 3, 0, 4, 4, 5, 5, 5, 1, 4, 5, 5, 4, 5, 0, 3, 4, 6, 5, 5, 1, 6, 5, 6, 6, 5, 6, 0, 6, 3, 6, 7, 7, 4, 7, 1, 7, 6, 7, 7, 6, 3, 6, 0, 6, 7, 6, 8, 7, 8, 7, 1, 7, 4, 7, 8, 8, 7, 4, 2, 0, 2]