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
Sean A. Irvine, Table of n, a(n) for n = 1..1000
Michael S. Branicky, Python program for OEIS A393101
Sean A. Irvine, Java program (github)
Wikipedia, Knuth-Morris-Pratt algorithm
PROG
(Python) # see linked program
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Sean A. Irvine, Feb 01 2026
STATUS
approved
