def _iter_factors(starting_factor=1):
    while True:
        yield starting_factor
        yield starting_factor * 3
        starting_factor *= 10
Generator yielding something like 1, 3, 10, 30, 100, 300 etc.
dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/utils.py/_iter_factors