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.

A165112 Length of preperiodic part of trajectory of n under iteration of the base-9 Kaprekar map in A165110.

Table of values

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

List of values

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