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.

A301336 a(n) = total number of 1's minus total number of 0's in binary expansions of 0, ..., n.

Table of values

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

List of values

[-1, 0, 0, 2, 1, 2, 3, 6, 4, 4, 4, 6, 6, 8, 10, 14, 11, 10, 9, 10, 9, 10, 11, 14, 13, 14, 15, 18, 19, 22, 25, 30, 26, 24, 22, 22, 20, 20, 20, 22, 20, 20, 20, 22, 22, 24, 26, 30, 28, 28, 28, 30, 30, 32, 34, 38, 38, 40, 42, 46, 48, 52, 56, 62, 57, 54, 51, 50, 47, 46, 45, 46, 43, 42, 41, 42]