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.

A232114 a(n) is the Manhattan distance between n and n^2 in a square spiral of positive integers with 1 at the center.

Table of values

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

List of values

[0, 2, 2, 2, 6, 4, 6, 8, 6, 12, 8, 12, 12, 12, 16, 12, 20, 14, 20, 18, 20, 22, 20, 26, 20, 30, 22, 30, 26, 30, 30, 30, 34, 30, 38, 30, 42, 32, 42, 36, 42, 40, 42, 44, 42, 48, 42, 52, 42, 56, 44, 56, 48, 56, 52, 56, 56, 56, 60, 56, 64, 56, 68, 56, 72, 58, 72, 62, 72, 66]