import itertools


def choose_n(total, sample_size):
    """Given a number of items N and a sample size S, returns all possible
    unordered S-tuples of integers up to N."""
    return list(itertools.combinations(range(1, total + 1), sample_size))