OFFSET
0,13
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 12 is 1100 in binary, which is 2+0i using complex base -1+i. Reversing 1100 gives 0011, or 0+i. Subtracting the original number from the reversed results in -2+i, or 11111 using the complex base. Its reversal is the same, so subtracting them gives 0. Decimal 12 took 2 steps to reach 0, so a(12) = 2.
CROSSREFS
KEYWORD
sign,base
AUTHOR
Kerry Mitchell, Jul 22 2011
STATUS
approved