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.

A371261 Lexicographically latest sequence of distinct nonnegative integers such that the run lengths transforms of the ternary expansions of n and of a(n) are the same.

Table of values

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

List of values

[0, 2, 1, 7, 8, 6, 5, 3, 4, 22, 23, 21, 25, 26, 24, 20, 19, 18, 17, 16, 15, 11, 9, 10, 14, 12, 13, 67, 68, 66, 70, 71, 69, 65, 64, 63, 76, 77, 75, 79, 80, 78, 74, 73, 72, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 35, 34, 33, 29, 27]