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.

A140129 Let c(n) = 0 if n=1, (c(floor(n/2)) + c(floor((n+1)/2)))/2 if 1 < n < 3*2^floor(log_2(n)-1), and c(n-2^floor(log_2(n))) + 1 otherwise. Then a(n) = numerator(c(n)).

Table of values

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

List of values

[0, 0, 1, 0, 1, 1, 2, 0, 1, 1, 3, 1, 3, 2, 3, 0, 1, 1, 3, 1, 5, 3, 7, 1, 5, 3, 7, 2, 5, 3, 4, 0, 1, 1, 3, 1, 5, 3, 7, 1, 9, 5, 11, 3, 13, 7, 15, 1, 9, 5, 11, 3, 13, 7, 15, 2, 9, 5, 11, 3, 7, 4, 5, 0, 1, 1, 3, 1, 5, 3, 7, 1, 9, 5, 11, 3, 13, 7, 15, 1, 17, 9, 19, 5, 21, 11, 23, 3, 25, 13, 27, 7, 29, 15, 31]