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.

A308712 a(0) = 0 and a(1) = 1; for n > 1, a(n) = a(n-1)/2 if that number is an integer and not already in the sequence, otherwise a(n) = 3*a(n-1) + remainder of a(n-1)/2. (A variant of the Collatz sequence).

Table of values

n a(n)
0 0
1 1
2 4
3 2
4 6
5 3
6 10
7 5
8 16
9 8
10 24
11 12
12 36
13 18
14 9
15 28
16 14
17 7
18 22
19 11
20 34
21 17
22 52
23 26
24 13
25 40
26 20
27 60
28 30
29 15
30 46
31 23
32 70
33 35
34 106
35 53
36 160
37 80
38 240
39 120
40 360
41 180
42 90
43 45
44 136
45 68
46 204
47 102
48 51
49 154
50 77
51 232
52 116
53 58
54 29
55 88
56 44
57 132
58 66
59 33
60 100
61 50
62 25
63 76
64 38
65 19
66 58

List of values

[0, 1, 4, 2, 6, 3, 10, 5, 16, 8, 24, 12, 36, 18, 9, 28, 14, 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 60, 30, 15, 46, 23, 70, 35, 106, 53, 160, 80, 240, 120, 360, 180, 90, 45, 136, 68, 204, 102, 51, 154, 77, 232, 116, 58, 29, 88, 44, 132, 66, 33, 100, 50, 25, 76, 38, 19, 58]