def get_indexes (minIndex, nClusters):
    """ Get the index of the clusters based on the index of the minimum distance between clusters
    """
    index1 = 0
    while minIndex >= (nClusters - 1):
        minIndex -= nClusters - 1
        nClusters -= 1
        index1 += 1
    index2 = minIndex % (nClusters - 1)
    return (index1, index2 + index1 + 1)