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.

A037861 (Number of 0's) - (number of 1's) in the base-2 representation of n.

Table of values

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

List of values

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