def get_elements(n, sort_them=True): group_size = sackint.factorial(n) elts = [] for k in range(0, group_size): elt = pmtc_tm.kth_pmtc(k, n, group_size) elts.append(elt) if sort_them: pmtc_tm.sort_pmtcs(elts) return elts
def get_elements(n): sn_size = sackint.factorial(n) elts = [] for k in range(0, sn_size): elt = pmtc_tm.kth_pmtc(k, n, sn_size) if (elt.parity() == 0): elts.append(elt) pmtc_tm.sort_pmtcs(elts) return elts