Iterate the map k -> A087712(k) starting at n; a(n) is the number of steps at which we see a repeated term for the first time; or -1 if the trajectory never repeats.

A098282

Iterate the map k -> A087712(k) starting at n; a(n) is the number of steps at which we see a repeated term for the first time; or -1 if the trajectory never repeats.

Terms

    a(0) =1a(1) =2a(2) =3a(3) =6a(4) =4a(5) =31a(6) =7a(7) =55a(8) =4a(9) =33a(10) =5a(11) =30a(12) =32a(13) =1a(14) =4a(15) =19a(16) =8a(17) =112a(18) =56a(19) =16a(20) =27a(21) =4a(22) =4a(23) =26a(24) =2a(25) =20a(26) =223a(27) =102a(28) =34a(29) =14

External references