Let T(S,Q) be the sequence obtaining by starting with S and repeatedly reversing the digits and adding Q to get the next term. a(n) is the number of steps for T(n,5) to reach a cycle, or -1 if no cycle is ever reached.

A118878

Let T(S,Q) be the sequence obtaining by starting with S and repeatedly reversing the digits and adding Q to get the next term. a(n) is the number of steps for T(n,5) to reach a cycle, or -1 if no cycle is ever reached.

Terms

    a(0) =1a(1) =190a(2) =1a(3) =87a(4) =1a(5) =0a(6) =189a(7) =0a(8) =86a(9) =0a(10) =0a(11) =188a(12) =0a(13) =85a(14) =191a(15) =0a(16) =0a(17) =95a(18) =0a(19) =190a(20) =1a(21) =0a(22) =184a(23) =0a(24) =3a(25) =187a(26) =0a(27) =0a(28) =91a(29) =0

External references