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.

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

Table of values

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

List of values

[0, 1, 3, 4, 2, 3, 5, 6, 4, 5, 9, 6, 6, 7, 11, 8, 8, 15, 9, 10, 10, 13, 11, 12, 22, 11, 15, 18, 12, 15, 17, 22, 12, 21, 25, 10, 26, 21, 19, 18, 24, 27, 15, 34, 24, 21, 31, 20, 28, 21, 31, 24, 28, 41, 19, 36, 36, 23, 35, 26, 38, 23, 41, 36, 28, 53, 29, 38, 40, 31, 39]