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.

A164995 Length of preperiodic part of trajectory of n under iteration of the base-3 Kaprekar map in A164993.

Table of values

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

List of values

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