The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A193239 Number of "Reverse and Add" steps needed to reach a palindrome using the complex base -1+i, or -1 if a palindrome is never reached. 5
0, 0, 1, 0, 1, 0, -1, 0, 1, 0, 1, 6, 1, 6, 1, 0, 1, 0, 1, 4, -1, 0, -1, -1, 1, 4, -1, 0, -1, -1, 5, 0, 1, 0, 1, 6, 1, -1, 1, -1, 1, -1, 1, -1, -1, 0, 7, -1, 1, 6, 7, 0, 1, -1, 1, 2, 1, -1, 1, 2, 7, -1, -1, 0, 1, 0, 1, -1, 1, -1, 1, -1, 3, 0, -1, -1, 9, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,12
COMMENTS
N is converted to its binary representation before iterating.
LINKS
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
Cf. A033665 gives the steps to reach a palindrome in base 10.
Sequence in context: A094774 A231925 A337464 * A023406 A138116 A348999
KEYWORD
base,sign
AUTHOR
Kerry Mitchell, Jul 19 2011
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 17 17:07 EDT 2024. Contains 372603 sequences. (Running on oeis4.)