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.

A228474 Number of steps required to reach zero in the wrecker ball sequence starting with n: On the k-th step (k = 1, 2, 3, ...) move a distance of k in the direction of zero. If the result has occurred before, move a distance of k away from zero instead. Set a(n) = -1 if 0 is never reached.

Table of values

n a(n)
0 0
1 1
2 4
3 2
4 24
5 26
6 3
7 1725
8 12
9 14
10 4
11 26
12 123
13 125
14 15
15 5
16 119
17 781802
18 20
19 22
20 132896
21 6
22 51
23 29
24 31
25 1220793
26 23
27 25
28 7
29 429
30 8869123
31 532009
32 532007
33 532009
34 532011
35 26
36 8
37 94
38 213355
39 213353
40 248
41 33
42 31
43 33
44 1000
45 9
46 144
47 110
48 112
49 82
50 84
51 210
52 60
53 34

List of values

[0, 1, 4, 2, 24, 26, 3, 1725, 12, 14, 4, 26, 123, 125, 15, 5, 119, 781802, 20, 22, 132896, 6, 51, 29, 31, 1220793, 23, 25, 7, 429, 8869123, 532009, 532007, 532009, 532011, 26, 8, 94, 213355, 213353, 248, 33, 31, 33, 1000, 9, 144, 110, 112, 82, 84, 210, 60, 34]