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.

A381764 Nearest integer not equal to n with the same Hamming weight (number of 1 bits) as n.

Table of values

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

List of values

[2, 1, 5, 2, 6, 5, 11, 4, 10, 9, 13, 10, 14, 13, 23, 8, 18, 17, 21, 18, 22, 21, 27, 20, 26, 25, 29, 26, 30, 29, 47, 16, 34, 33, 37, 34, 38, 37, 43, 36, 42, 41, 45, 42, 46, 45, 55, 40, 50, 49, 53, 50, 54, 53, 59, 52, 58, 57, 61, 58, 62, 61, 95, 32, 66, 65, 69, 66]