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.

A164886 (Length of preperiodic part) + (length of cycle) of trajectory of n under iteration of the base-2 Kaprekar map in A164884.

Table of values

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

List of values

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