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.

A166404 Self-inverse permutation of natural numbers obtained by exchanging the run lengths of adjacent runs of ones and zeros in the binary expansion of n, starting from the most significant run of 1's. (See the example lines).

Table of values

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

List of values

[0, 1, 2, 3, 6, 5, 4, 7, 14, 13, 10, 11, 12, 9, 8, 15, 30, 29, 26, 27, 22, 21, 20, 23, 28, 25, 18, 19, 24, 17, 16, 31, 62, 61, 58, 59, 54, 53, 52, 55, 46, 45, 42, 43, 44, 41, 40, 47, 60, 57, 50, 51, 38, 37, 36, 39, 56, 49, 34, 35, 48, 33, 32, 63, 126, 125, 122, 123, 118, 117]