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.

A277214 a(n) is the Manhattan distance between n and 1 in a 3-dimensional cubic spiral of positive integers with 1..8 at the center (illustration in the comments).

Table of values

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

List of values

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