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.

A303548 For any n > 0 and h > 0, let d_h(n) be the distance from n to the nearest number with Hamming weight at most h; a(n) = Sum_{i > 0} d_i(n).

Table of values

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

List of values

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