(Length of preperiodic part) + (length of cycle) of trajectory of n under iteration of the base-3 Kaprekar map in A164993.

A164996

(Length of preperiodic part) + (length of cycle) of trajectory of n under iteration of the base-3 Kaprekar map in A164993.

Terms

    a(0) =1a(1) =2a(2) =2a(3) =3a(4) =2a(5) =3a(6) =3a(7) =3a(8) =2a(9) =3a(10) =3a(11) =4a(12) =3a(13) =2a(14) =3a(15) =4a(16) =3a(17) =3a(18) =4a(19) =4a(20) =4a(21) =4a(22) =3a(23) =3a(24) =4a(25) =3a(26) =2a(27) =3a(28) =3a(29) =4

External references