Looking for patterns in sequences?