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.

A165317 a(n) = the number of digits in the binary representation of n that each do not precede or follow a similarly valued digit.

Table of values

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

List of values

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