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.

A164996 (Length of preperiodic part) + (length of cycle) of trajectory of n under iteration of the base-3 Kaprekar map in A164993.

Table of values

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

List of values

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