Perhaps "..; when ..." -> .... When kmin appears at position i in subset t, subsequent combinations that are the same as t[:i] are skipped. So if kmin is 7, subset (2, 3, 7) could be followed by (2, 4, 7), not (2, 3, 8).