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.

A322250 Take binary expansion of 2n-1 and delete the trailing block of 1's, except if the number is 11...1, leave a single 1.

Table of values

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

List of values

[1, 1, 2, 1, 4, 2, 6, 1, 8, 4, 10, 2, 12, 6, 14, 1, 16, 8, 18, 4, 20, 10, 22, 2, 24, 12, 26, 6, 28, 14, 30, 1, 32, 16, 34, 8, 36, 18, 38, 4, 40, 20, 42, 10, 44, 22, 46, 2, 48, 24, 50, 12, 52, 26, 54, 6, 56, 28, 58, 14, 60, 30, 62, 1, 64]