A165113 (Length of preperiodic part) + (length of cycle) of trajectory of n under iteration of the base-9 Kaprekar map in A165110.
1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 3, 3, 5, 4, 3, 2, 5, 3, 3, 2, 3, 3, 5, 4, 3, 3, 5, 3, 3, 2, 3, 3, 5, 4, 3, 4, 5, 3, 3, 2, 3, 3, 5, 4, 3, 4, 5, 2, 3, 2, 3, 3, 5, 3, 3, 4, 5, 3, 3, 2, 3, 3, 5, 3, 3, 4, 5, 3, 3, 2, 3, 4, 5, 3, 3, 4, 5, 3, 3, 2, 3, 3, 6, 5, 3, 3, 4, 5, 6, 3, 2, 3, 6, 5, 3, 3, 4, 5, 6, 3, 3, 6, 5, 3
Offset: 0