login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A091110 Number of editing steps (deletion, insertion, or substitution) to transform the binary representation of n into the ternary representation of n. 1
0, 2, 1, 2, 2, 2, 2, 4, 1, 1, 2, 1, 1, 2, 3, 4, 4, 3, 3, 4, 3, 3, 4, 4, 4, 5, 3, 3, 3, 2, 2, 4, 3, 3, 4, 2, 2, 4, 3, 4, 4, 3, 3, 4, 4, 4, 5, 4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 4, 4, 5, 5, 6, 5, 6, 6, 5, 5, 6, 6, 6, 6, 5, 5, 6, 5, 5, 6, 6, 6, 7, 2, 2, 3, 2, 2, 3, 4, 4, 4, 2, 2, 3, 2, 2, 3, 4, 4, 5, 4, 4, 4, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

a(A091111(n))=n and a(m)>n for m>A091111(n).

LINKS

Table of n, a(n) for n=1..102.

Michael Gilleland, Levenshtein Distance [It has been suggested that this algorithm gives incorrect results sometimes. - N. J. A. Sloane]

Eric Weisstein's World of Mathematics, Binary

Eric Weisstein's World of Mathematics, Ternary

FORMULA

a(n) = LevenshteinDistance(A007088(n), A007088(n)).

CROSSREFS

Sequence in context: A226942 A030371 A029550 * A339660 A104659 A077197

Adjacent sequences:  A091107 A091108 A091109 * A091111 A091112 A091113

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller, Dec 20 2003

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 16 07:19 EDT 2021. Contains 347469 sequences. (Running on oeis4.)