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.

A037888 a(n) = (1/2)*Sum_{i} |d(i) - e(i)| where Sum_{i} d(i)*2^i is the base-2 representation of n and e(i) are digits d(i) in reverse order.

Table of values

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

List of values

[0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 1, 2, 1, 1, 0, 1, 0, 2, 1, 1, 0, 2, 1, 2, 1, 1, 0, 2, 1, 1, 0, 1, 0, 2, 1, 2, 1, 3, 2, 2, 1, 3, 2, 1, 0, 2, 1, 2, 1, 1, 0, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0, 1, 0, 2, 1, 2, 1, 3, 2, 1, 0, 2, 1, 2, 1, 3, 2, 2, 1, 3, 2, 1, 0, 2, 1, 2, 1, 3]