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.

A383270 Length of the longest sequence of contiguous 1s in the binary expansion of n after flipping at most one 0-bit to 1.

Table of values

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

List of values

[1, 1, 2, 2, 2, 3, 3, 3, 2, 2, 3, 4, 3, 4, 4, 4, 2, 2, 2, 3, 3, 3, 4, 5, 3, 3, 4, 5, 4, 5, 5, 5, 2, 2, 2, 3, 2, 3, 3, 4, 3, 3, 3, 4, 4, 4, 5, 6, 3, 3, 3, 3, 4, 4, 5, 6, 4, 4, 5, 6, 5, 6, 6, 6, 2, 2, 2, 3, 2, 3, 3, 4, 2, 2, 3, 4, 3, 4, 4, 5, 3, 3, 3, 3, 3, 3, 4, 5]