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.

A365344 a(0) = 0; for n > 0, a(n) is the largest distance squared on a square spiral between a(n-1) and any previous occurrence 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 41
48 61
49 0
50 74
51 0
52 58
53 0
54 50
55 0
56 61
57 50
58 5
59 0
60 58
61 32
62 0
63 85
64 0
65 113
66 0
67 89
68 0
69 73
70 0
71 89
72 16
73 53
74 0
75 85
76 68
77 0
78 89
79 61
80 65
81 0
82 145
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, 41, 61, 0, 74, 0, 58, 0, 50, 0, 61, 50, 5, 0, 58, 32, 0, 85, 0, 113, 0, 89, 0, 73, 0, 89, 16, 53, 0, 85, 68, 0, 89, 61, 65, 0, 145, 0]