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.

A306384 Start with n and repeatedly double it and apply the "delete any run of identical digits" operation described in A321801; a(n) is the number of steps needed to reach one of 0, 1, or 5, or -1 if none of these three numbers is ever reached.

Table of values

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

List of values

[0, 0, 19, 12, 18, 0, 11, 23, 17, 4, 19, 1, 10, 29, 22, 32, 16, 5, 3, 47, 18, 15, 1, 20, 9, 2, 28, 26, 21, 13, 31, 24, 15, 1, 4, 23, 2, 18, 46, 21, 17, 51, 14, 15, 1, 24, 19, 2, 8, 10, 1, 33, 27, 24, 25, 1, 20, 19, 12, 18, 30, 1, 23, 7, 14, 29, 6, 20, 3]