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.

A274641 Counterclockwise square spiral constructed by greedy algorithm, so that each row, column, and diagonal contains distinct numbers. Start with 0 (so in this version a(n) = A274640(n) - 1).

Table of values

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

List of values

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