> But how about > 0001100 and 0011000 which has 5 common substrings of length 4: 000 001 011 100 110 ? A _longest_ common substring is 001100, length six. > %N A094824 Maximum number of _longest_ common substrings -- Don Reble djr at nk.ca