Consider the base-8 Kaprekar map x->K(x) described in A165090. 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.

A165106

Consider the base-8 Kaprekar map x->K(x) described in A165090. 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) =17892a(2) =1589a(3) =21483a(4) =1022a(5) =7034104602a(6) =1445787

External references