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.

A137178 a(n) = sum_(1..n) [S2(n)mod 2 - floor(5*S2(n)/7)mod 2], where S2(n) = binary weight of n.

Table of values

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

List of values

[0, 1, 2, 1, 2, 1, 0, 1, 2, 1, 0, 1, 0, 1, 2, 2, 3, 2, 1, 2, 1, 2, 3, 3, 2, 3, 4, 4, 5, 5, 5, 5, 6, 5, 4, 5, 4, 5, 6, 6, 5, 6, 7, 7, 8, 8, 8, 8, 7, 8, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 12, 11, 10, 11, 10, 11, 12, 12, 11, 12, 13, 13, 14, 14, 14, 14, 13, 14, 15, 15, 16, 16, 16]