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.

A366543 a(0) = 0; for n > 0, a(n) is the largest distance squared on a square spiral between any two previous occurrences of a(n-1). If a(n-1) has not previously occurred then a(n) = 0.

Table of values

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

List of values

[0, 0, 1, 0, 2, 0, 4, 0, 4, 4, 9, 0, 10, 0, 10, 4, 18, 0, 16, 0, 20, 0, 20, 4, 20, 16, 29, 0, 26, 0, 34, 0, 34, 4, 26, 20, 41, 0, 40, 0, 40, 4, 34, 72, 0, 45, 0, 45, 4, 45, 16, 40, 53, 0, 50, 0, 61, 0, 65, 0, 65, 4, 65, 16, 85, 0, 68, 0, 68, 4, 65, 72, 4, 73, 0, 89, 0, 89, 4, 73, 36, 0, 130, 0]