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.

A166006 Distance from the origin using the binary expansion of Pi to walk the number line: Start at the origin; subtract one for each '0' digit, and add one for each '1' digit.

Table of values

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

List of values

[1, 2, 1, 0, 1, 0, -1, 0, -1, -2, -3, -4, -3, -2, -1, 0, 1, 2, 1, 2, 3, 2, 3, 2, 3, 2, 3, 2, 1, 0, 1, 0, -1, -2, -1, -2, -3, -4, -5, -4, -5, -4, -3, -4, -3, -4, -5, -6, -5, -4, -5, -6, -7, -8, -7, -8, -9, -10, -9, -8, -9, -8, -9, -10, -9, -8, -9, -10, -11, -10, -11, -12, -11, -10, -11]