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.

A353157 a(n) is the distance from n to the nearest integer whose binary expansion has no common 1-bits with that of n.

Table of values

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

List of values

[0, 1, 1, 1, 1, 3, 2, 1, 1, 3, 5, 5, 4, 3, 2, 1, 1, 3, 5, 7, 9, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25]