import math


def gen_abd_params(N, f, dummy=None):
    """ Generate possible values of n, q1, q2
    """
    quorum_params = []
    quorum_params_append = quorum_params.append
    for n in range(2*f+1, N+1):
        for q1 in range(math.ceil((N-1)/2), n-f+1):
            for q2 in range(math.ceil((N-1)/2), n-f+1):
                if q1+q2 > n:
                    quorum_params_append((n, q1, q2))
    return quorum_params