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.

A265400 a(n) = one-based index to the nearest horizontally or vertically adjacent inner neighbor in square-grid spirals, or 0 if n is one of the corner cases A033638.

Table of values

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

List of values

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