Consider the base-3 Kaprekar map x->K(x) described in A164993. Sequence gives the smallest number that belongs to a cycle of length n under repeated iteration of this map, or -1 if there is no cycle of length n.

A165008

Consider the base-3 Kaprekar map x->K(x) described in A164993. Sequence gives the smallest number that belongs to a cycle of length n under repeated iteration of this map, or -1 if there is no cycle of length n.

Terms

    a(0) =0a(1) =32a(2) =320a(3) =26240a(4) =1240024a(5) =11160256a(8) =8135830264a(10) =659002251784

External references