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.

A381839 In the binary expansion of n (without leading zeros): complement the bits strictly between the leftmost and the rightmost 0's, if any.

Table of values

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

List of values

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