def get_sums(target, count):
    """Return a list of all sums to `target` with `count`
    coefficients. This will include all possible ordering
    of coefficients.
    """
    if count == 2:
        sums = [
          [target - x, x] for x in range(1, target - 1)
          if target - x != x and x < 10 and (target - x) < 10
        ]
    else:
        sums = []
        for x in range(1, target - 1):
            sums.extend(
              [sum + [x] for sum in get_sums(target - x, count - 1) if x not in sum and x < 10]
            )
    return sums