import itertools

def index_matriu(n):
    return itertools.combinations(range(1, n+1), 2)
