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.

A259656 Let f(x) be the absolute value of the difference between x and its base-2 reversal. a(n) is the number of times f(x) must be applied starting with n for the result to be 0.

Table of values

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

List of values

[1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 3, 2, 1, 2, 1, 2, 3, 2, 1, 2, 3, 2, 3, 2, 1, 2, 3, 2, 1, 2, 1, 2, 3, 2, 3, 4, 3, 4, 3, 2, 3, 2, 1, 2, 3, 2, 3, 2, 1, 4, 3, 2, 3, 4, 3, 4, 3, 2, 3, 2, 1, 2, 1, 2, 3, 2, 3, 2, 3, 2, 1, 2, 3, 2, 3, 2, 3, 4, 3, 2, 3]