A165007 Number of n-digit numbers in a cycle (including fixed points) under the base-3 Kaprekar map A164993.
1, 0, 0, 2, 1, 3, 3, 1, 6, 5, 10, 3, 15, 4, 21, 7, 28, 12, 36, 11, 45, 13, 55, 18, 66, 19, 78, 25, 91, 28, 105, 35, 120, 41, 136, 43, 153, 47, 171, 56, 190, 58, 210, 68, 231, 73, 253, 84, 276, 85, 300, 97, 325, 103, 351, 116, 378, 119, 406, 133, 435, 140, 465, 155, 496, 162
Offset: 1