Let S_n be the infinite sequence formed by starting with n and repeatedly reversing the digits and adding 4 to get the next term. Sequence gives number of steps for S_n to reach a cycle, or -1 if no cycle is ever reached.
A117831
Let S_n be the infinite sequence formed by starting with n and repeatedly reversing the digits and adding 4 to get the next term. Sequence gives number of steps for S_n to reach a cycle, or -1 if no cycle is ever reached.
Terms
- a(0) =1a(1) =1a(2) =40a(3) =7a(4) =0a(5) =0a(6) =39a(7) =6a(8) =0a(9) =0a(10) =38a(11) =5a(12) =0a(13) =18a(14) =37a(15) =3a(16) =0a(17) =43a(18) =10a(19) =0a(20) =4a(21) =42a(22) =9a(23) =4a(24) =4a(25) =41a(26) =7a(27) =0a(28) =47a(29) =40
External references
- oeis: A117831