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.

A308419 Stopping time for Recamán-like iteration of each n: a(0) = n, a(k) = a(k-1) - k if positive and not already in the sequence, a(k) = a(k-1) + k if not already in the sequence, otherwise stop.

Table of values

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

List of values

[24, 24, 13, 21, 3, 3, 3, 15, 6, 6, 6, 15, 12, 9, 9, 9, 16, 20, 15, 12, 12, 12, 8, 10, 12, 20, 15, 15, 15, 10, 15, 24, 22, 26, 18, 18, 18, 11, 13, 18, 29, 28, 27, 21, 21, 21, 15, 13, 19, 17, 25, 31, 23, 24, 24, 24, 16, 18, 20, 21]