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.

A298847 Lexicographically earliest sequence of distinct positive terms such that, for any n > 0, the number of ones in the binary expansion of n equals one plus the number of zeros in the binary expansion of a(n).

Table of values

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

List of values

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