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.

A126387 Read binary expansion of n from the left; keep track of the excess of 1's over 0's that have been seen so far; sequence gives maximum(excess of 1's over 0's).

Table of values

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

List of values

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