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.

A179857 Smallest number greater than n having in binary representation exactly twice the number of ones as n has in binary representation.

Table of values

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

List of values

[3, 3, 15, 5, 15, 15, 63, 9, 15, 15, 63, 15, 63, 63, 255, 17, 23, 23, 63, 23, 63, 63, 255, 27, 63, 63, 255, 63, 255, 255, 1023, 33, 39, 39, 63, 39, 63, 63, 255, 43, 63, 63, 255, 63, 255, 255, 1023, 51, 63, 63, 255, 63, 255, 255, 1023, 63, 255, 255, 1023, 255, 1023, 1023]