login
A393101
Number of character comparisons needed by Knuth-Morris-Pratt string search to identify the first occurrence of string n in the infinite Champernowne word 123456789101112... (A033307).
3
1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 2, 22, 25, 28, 31, 34, 37, 40, 33, 17, 35, 3, 46, 49, 52, 55, 58, 61, 54, 19, 40, 57, 4, 70, 73, 76, 79, 82, 75, 21, 42, 63, 79, 5, 94, 97, 100, 103, 96, 23, 44, 65, 86, 101, 6, 118, 121, 124, 117, 25, 46, 67, 88, 109, 123, 7
OFFSET
1,2
COMMENTS
The comparisons counted are those between the pattern and text, initial comparisons of the pattern with itself are not counted.
LINKS
Michael S. Branicky, Python program for OEIS A393101
Sean A. Irvine, Java program (github)
PROG
(Python) # see linked program
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Sean A. Irvine, Feb 01 2026
STATUS
approved