Let L_n be the infinite sequence formed by starting with 1 and repeatedly placing the first digit at the end of the number and adding n to get the next term. If L_n eventually reaches a cycle, sequence gives length of that cycle, otherwise -1.

A118739

Let L_n be the infinite sequence formed by starting with 1 and repeatedly placing the first digit at the end of the number and adding n to get the next term. If L_n eventually reaches a cycle, sequence gives length of that cycle, otherwise -1.

Terms

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

External references