def combinatori(n, k):
    if k == 0 or k == n:
        c = 1
    else:
        c = combinatori(n-1, k-1) + combinatori(n-1, k)
    return c
