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.

A265409 a(n) = index to the nearest inner neighbor in Ulam-style square-spirals using zero-based indexing.

Table of values

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

List of values

[0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 4, 4, 4, 5, 6, 6, 6, 7, 8, 9, 9, 9, 10, 11, 12, 12, 12, 13, 14, 15, 16, 16, 16, 17, 18, 19, 20, 20, 20, 21, 22, 23, 24, 25, 25, 25, 26, 27, 28, 29, 30, 30, 30, 31, 32, 33, 34, 35, 36, 36, 36, 37, 38, 39, 40, 41, 42, 42, 42, 43, 44, 45, 46, 47, 48, 49, 49, 49, 50]