First compute the length of the supplied sequence. Then iterate from the pair consisting of the difference of one and one using checked subtraction and that computed value using lower-bound narrowing in the supplied sequence for the supplied target. Before each update, continue only when the second component of the accumulated value is greater than the first component of the accumulated value. Return the first component of the accumulated value.