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.

A140977 a(n) is the smallest integer > n that has the same number of (nonleading) zeros in its binary representation as n has.

Table of values

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

List of values

[3, 5, 7, 9, 6, 11, 15, 17, 10, 12, 13, 19, 14, 23, 31, 33, 18, 20, 21, 24, 22, 25, 27, 35, 26, 28, 29, 39, 30, 47, 63, 65, 34, 36, 37, 40, 38, 41, 43, 48, 42, 44, 45, 49, 46, 51, 55, 67, 50, 52, 53, 56, 54, 57, 59, 71, 58, 60, 61, 79, 62, 95, 127, 129, 66, 68, 69, 72, 70, 73, 75]