a(n) is one greater than the number of repeated applications of the Reverse and Add (RA) transform applied to the binary representation of n that are required to reach a palindrome, or a(n)=0 if a palindrome is never reached.

A096370

a(n) is one greater than the number of repeated applications of the Reverse and Add (RA) transform applied to the binary representation of n that are required to reach a palindrome, or a(n)=0 if a palindrome is never reached.

Terms

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

External references