[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A080910
Number of numbers that differ from n in decimal representation by exactly one edit-operation: deletion, insertion, or substitution.
3
18, 27, 27, 27, 27, 27, 27, 27, 27, 27, 46, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 45, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 45, 46, 46
OFFSET
0,1
COMMENTS
a(n) = #{i: LevenshteinDistance(n,i)=1}.
LINKS
Michael Gilleland, Levenshtein Distance. [It has been suggested that this algorithm gives incorrect results sometimes. - N. J. A. Sloane]
EXAMPLE
n=42: numbers at Levenshtein distance 1 from 42: {2, 4, 12, 22, 32, 40, 41, 43, 44, 45, 46, 47, 48, 49, 52, 62, 72, 82, 92, 142, 242, 342, 402, 412, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 432, 442, 452, 462, 472, 482, 492, 542, 642, 742, 842, 942}, therefore a(42)=46.
CROSSREFS
Sequence in context: A338383 A338385 A220100 * A347826 A036763 A226971
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Apr 01 2003
STATUS
approved