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.

A381852 In the binary expansion of n (without leading zeros): complement the bits strictly to the right of the leftmost zero digit, if any.

Table of values

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

List of values

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