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.

A053645 Distance to largest power of 2 less than or equal to n; write n in binary, change the first digit to zero, and convert back to decimal.

Table of values

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

List of values

[0, 0, 1, 0, 1, 2, 3, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]