for child in jump(n - 1, min_gap, right_bound, so_far + [i]):
    yield child
Python: find all sets of numbers inside a range where each set contains values that are x distance apart and don't exceed the range