OFFSET
0,12
COMMENTS
N is converted to its binary representation before iterating.
LINKS
Kerry Mitchell, Table of n, a(n) for n = 0..10000
W. J. Gilbert, Arithmetic in Complex Bases, Mathematics Magazine, Vol. 57, No. 2 (Mar., 1984), pp. 77-81.
EXAMPLE
Decimal 2 is 10 in binary, which is -1+i using complex base -1+i. Reversing 10 gives 01, or 1+0i. Adding both results in 0+i, or 11 using the complex base, which is a palindrome. Decimal 2 took 1 step to reach a palindrome, so a(2) = 1.
CROSSREFS
KEYWORD
base,sign
AUTHOR
Kerry Mitchell, Jul 19 2011
STATUS
approved