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.

A371343 Lexicographically latest sequence of distinct nonnegative integers such that for any n >= 0, the binary expansions of n and of a(n) have the same length (A070939) and the same number of runs of consecutive equals digits (A005811).

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 25
24 28
25 23
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 57
40 50
41 45
42 42
43 43
44 46
45 41
46 44
47 55
48 60
49 51
50 40
51 49
52 38
53 37
54 36
55 47
56 56
57 39
58 34
59 35
60 48
61 33
62 32
63 63
64 126
65 125
66 122

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, 25, 28, 23, 18, 19, 24, 17, 16, 31, 62, 61, 58, 59, 54, 53, 52, 57, 50, 45, 42, 43, 46, 41, 44, 55, 60, 51, 40, 49, 38, 37, 36, 47, 56, 39, 34, 35, 48, 33, 32, 63, 126, 125, 122]