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.

A274640 Counterclockwise square spiral constructed by greedy algorithm, so that each row, column, and diagonal contains distinct numbers.

Table of values

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

List of values

[1, 2, 3, 4, 2, 3, 4, 5, 6, 1, 4, 6, 2, 1, 6, 5, 3, 1, 5, 2, 6, 1, 2, 4, 5, 3, 7, 8, 5, 4, 9, 7, 8, 3, 10, 11, 4, 7, 8, 6, 3, 9, 5, 7, 8, 9, 10, 11, 12, 6, 8, 9, 11, 10, 12, 13, 7, 6, 10, 9, 12, 13, 14, 15, 8, 2, 9, 12, 7, 10, 11, 13, 14, 10, 9, 6, 13, 5, 3, 15, 16, 7, 1, 10, 13, 12, 14, 11, 15, 3, 8, 5, 1, 12, 11, 14, 7, 4, 2, 16, 9, 17, 1, 8, 11]