Just use Solve
instead of Reduce
. We can eliminate $p$ by setting
f[x_] = Abs[a x + b] + Abs[c x + d] + m x^2 + n x;
and looking for $f(1)=f(2)=f(3)=f(4)=f(7)=f(9)$ (which is necessarily integer when all parameters are integers).
As suggested by @Akku14, enlarging the search space yields solutions for $m\neq 0$:
f[x_] = Abs[a x + b] + Abs[c x + d] + m x^2 +Solve[Join[{Equal n@@ xf +/@ p;
Solve[{f[1] == 01, f[2] == 02, f[3] == 03, f[4] == 04, f[7] ==7, 09}, f[9]m ==!= 0},
-2 <= a <= -1, Thread[-2 <= b100 <= 3{a, -3 <=b, c <= 3, -3 <= d <= 10,
-1 <= m <= 1, -3 <= n} <= 8100]],
-20 <= p <= 1},
{a, b, c, d, m, n, p}, Integers]
(* {{a -> -2, b -> -2, c -> -1, d -> -3, m -> 0, n -> -3, p -> -5},
{a -> -2, b -> -2, c -> -1, d -> -2, m -> 0, n -> -3, p -> -4},
{a -> -2, b -> -2, c -> -1, d -> -1, m -> 0, n -> -3, p -> -3},
{a -> -2, b -> -2, c -> -1, d -> 0, m -> 0, n -> -3, p -> -2},
{a -> -2, b -> -2, c -> -1, d -> 1, m -> 0, n -> -3, p -> -1},
{a -> -2, b -> -2, c -> -1, d -> 9, m -> 0, n -> -1, p -> -11},
{a -> -2, b -> -2, c -> -1, d -> 10, m -> 0, n -> -1, p -> -12},
{a -> -2, b -> -2, c -> 0, d -> -3, m -> 0, n -> -2, p -> -5},
{a -> -2, b -> -2, c -> 0, d -> -2, m -> 0, n -> -2, p -> -4},
{a -> -2, b -> -2, c -> 0, d -> -1, m -> 0, n -> -2, p -> -3},
{a -> -2, b -> -2, c -> 0, d -> 0, m -> 0, n -> -2, p -> -2},
{a -> -2, b -> -2, c -> 0, d -> 1, m -> 0, n -> -2, p -> -3},
{a -> -2, b -> -2, c -> 0, d -> 2, m -> 0, n -> -2, p -> -4},
{a -> -2, b -> -2, c -> 0, d -> 3, m -> 0, n -> -2, p -> -5},
{a -> -2, b -> -2, c -> 0, d -> 4, m -> 0, n -> -2, p -> -6},
{a -> -2, b -> -2, c -> 0, d -> 5, m -> 0, n -> -2, p -> -7},
{a -> -2, b -> -2, c -> 0, d -> 6, m -> 0, n -> -2, p -> -8},
{a -> -2, b -> -2, c -> 0, d -> 7, m -> 0, n -> -2, p -> -9},
{a -> -2, b -> -2, c -> 0, d -> 8, m -> 0, n -> -2, p -> -10},
{a -> -2, b -> -2, c -> 0, d -> 9, m -> 0, n -> -2, p -> -11},
{a -> -2, b -> -2, c -> 0, d -> 10, m -> 0, n -> -2, p -> -12},
{a -> -2, b -> -2, c -> 1, d -> -1, m -> 0, n -> -3, p -> -1},
{a -> -2, b -> -2, c -> 1, d -> 0, m -> 0, n -> -3, p -> -2},
{a -> -2, b -> -2, c -> 1, d -> 1, m -> 0, n -> -3, p -> -3},
{a -> -2, b -> -2, c -> 1, d -> 2, m -> 0, n -> -3, p -> -4},
{a -> -2, b -> -2, c -> 1, d -> 3, m -> 0, n -> -3, p -> -5},
{a -> -2, b -> -2, c -> 1, d -> 4, m -> 0, n -> -3, p -> -6},
{a -> -2, b -> -2, c -> 1, d -> 5, m -> 0, n -> -3, p -> -7},
{a -> -2, b -> -2, c -> 1, d -> 6, m -> 0, n -> -3, p -> -8},
{a -> -2, b -> -2, c -> 1, d -> 7, m -> 0, n -> -3, p -> -9},
{a -> -2, b -> -2, c -> 1, d -> 8, m -> 0, n -> -3, p -> -10},
{a -> -2, b -> -2, c -> 1, d -> 9, m -> 0, n -> -3, p -> -11},
{a -> -2, b -> -2, c -> 1, d -> 10, m -> 0, n -> -3, p -> -12},
{a -> -2, b -> -1, c -> -1, d -> -3, m -> 0, n -> -3, p -> -4},
{a -> -2, b -> -1, c -> -1, d -> -2, m -> 0, n -> -3, p -> -3},
{a -> -2, b -> -1, c -> -1, d -> -1, m -> 0, n -> -3, p -> -2},
{a -> -2, b -> -1, c -> -1, d -> 0, m -> 0, n -> -3, p -> -1},
{a -> -2, b -> -1, c -> -1, d -> 1, m -> 0, n -> -3, p -> 0},
{a -> -2, b -> -1, c -> -1, d -> 9, m -> 0, n -> -1, p -> -10},
{a -> -2, b -> -1, c -> -1, d -> 10, m -> 0, n -> -1, p -> -11},
{a -> -2, b -> -1, c -> 0, d -> -3, m -> 0, n -> -2, p -> -4},
{a -> -2, b -> -1, c -> 0, d -> -2, m -> 0, n -> -2, p -> -3},
{a -> -2, b -> -1, c -> 0, d -> -1, m -> 0, n -> -2, p -> -2},
{a -> -2, b -> -1, c -> 0, d -> 0, m -> 0, n -> -2, p -> -1},
{a -> -2, b -> -1, c -> 0, d -> 1, m -> 0, n -> -2, p -> -2},
{a -> -2, b -> -1, c -> 0, d -> 2, m -> 0, n -> -2, p -> -3},
{a -> -2, b -> -1, c -> 0, d -> 3, m -> 0, n -> -2, p -> -4},
{a -> -2, b -> -1, c -> 0, d -> 4, m -> 0, n -> -2, p -> -5},
{a -> -2, b -> -1, c -> 0, d -> 5, m -> 0, n -> -2, p -> -6},
{a -> -2, b -> -1, c -> 0, d -> 6, m -> 0, n -> -2, p -> -7},
{a -> -2, b -> -1, c -> 0, d -> 7, m -> 0, n -> -2, p -> -8},
{a -> -2, b -> -1, c -> 0, d -> 8, m -> 0, n -> -2, p -> -9},
{a -> -2, b -> -1, c -> 0, d -> 9, m -> 0, n -> -2, p -> -10},
{a -> -2, b -> -1, c -> 0, d -> 10, m -> 0, n -> -2, p -> -11},
{a -> -2, b -> -1, c -> 1, d -> -1, m -> 0, n -> -3, p -> 0},
{a -> -2, b -> -1, c -> 1, d -> 0, m -> 0, n -> -3, p -> -1},
{a -> -2, b -> -1, c -> 1, d -> 1, m -> 0, n -> -3, p -> -2},
{a -> -2, b -> -1, c -> 1, d -> 2, m -> 0, n -> -3, p -> -3},
{a -> -2, b -> -1, c -> 1, d -> 3, m -> 0, n -> -3, p -> -4},
{a -> -2, b -> -1, c -> 1, d -> 4, m -> 0, n -> -3, p -> -5},
{a -> -2, b -> -1, c -> 1, d -> 5, m -> 0, n -> -3, p -> -6},
{a -> -2, b -> -1, c -> 1, d -> 6, m -> 0, n -> -3, p -> -7},
{a -> -2, b -> -1, c -> 1, d -> 7, m -> 0, n -> -3, p -> -8},
{a -> -2, b -> -1, c -> 1, d -> 8, m -> 0, n -> -3, p -> -9},
{a -> -2, b -> -1, c -> 1, d -> 9, m -> 0, n -> -3, p -> -10},
{a -> -2, b -> -1, c -> 1, d -> 10, m -> 0, n -> -3, p -> -11},
{a -> -2, b -> 0, c -> -1, d -> -3, m -> 0, n -> -3, p -> -3},
{a -> -2, b -> 0, c -> -1, d -> -2, m -> 0, n -> -3, p -> -2},
{a -> -2, b -> 0, c -> -1, d -> -1, m -> 0, n -> -3, p -> -1},
{a -> -2, b -> 0, c -> -1, d -> 0, m -> 0, n -> -3, p -> 0},
{a -> -2, b -> 0, c -> -1, d -> 1, m -> 0, n -> -3, p -> 1},
{a -> -2, b -> 0, c -> -1, d -> 9, m -> 0, n -> -1, p -> -9},
{a -> -2, b -> 0, c -> -1, d -> 10, m -> 0, n -> -1, p -> -10},
{a -> -2, b -> 0, c -> 0, d -> -3, m -> 0, n -> -2, p -> -3},
{a -> -2, b -> 0, c -> 0, d -> -2, m -> 0, n -> -2, p -> -2},
{a -> -2, b -> 0, c -> 0, d -> -1, m -> 0, n -> -2, p -> -1},
{a -> -2, b -> 0, c -> 0, d -> 0, m -> 0, n -> -2, p -> 0},
{a -> -2, b -> 0, c -> 0, d -> 1, m -> 0, n -> -2, p -> -1},
{a -> -2, b -> 0, c -> 0, d -> 2, m -> 0, n -> -2, p -> -2},
{a -> -2, b -> 0, c -> 0, d -> 3, m -> 0, n -> -2, p -> -3},
{a -> -2, b -> 0, c -> 0, d -> 4, m -> 0, n -> -2, p -> -4},
{a -> -2, b -> 0, c -> 0, d -> 5, m -> 0, n -> -2, p -> -5},
{a -> -2, b -> 0, c -> 0, d -> 6, m -> 0, n -> -2, p -> -6},
{a -> -2, b -> 0, c -> 0, d -> 7, m -> 0, n -> -2, p -> -7},
{a -> -2, b -> 0, c -> 0, d -> 8, m -> 0, n -> -2, p -> -8},
{a -> -2, b -> 0, c -> 0, d -> 9, m -> 0, n -> -2, p -> -9},
{a -> -2, b -> 0, c -> 0, d -> 10, m -> 0, n -> -2, p -> -10},
{a -> -2, b -> 0, c -> 1, d -> -1, m -> 0, n -> -3, p -> 1},
{a -> -2, b -> 0, c -> 1, d -> 0, m -> 0, n -> -3, p -> 0},
{a -> -2, b -> 0, c -> 1, d -> 1, m -> 0, n -> -3, p -> -1},
{a -> -2, b -> 0, c -> 1, d -> 2, m -> 0, n -> -3, p -> -2},
{a -> -2, b -> 0, c -> 1, d -> 3, m -> 0, n -> -3, p -> -3},
{a -> -2, b -> 0, c -> 1, d -> 4, m -> 0, n -> -3, p -> -4},
{a -> -2, b -> 0, c -> 1, d -> 5, m -> 0, n -> -3, p -> -5},
{a -> -2, b -> 0, c -> 1, d -> 6, m -> 0, n -> -3, p -> -6},
{a -> -2, b -> 0, c -> 1, d -> 7, m -> 0, n -> -3, p -> -7},
{a -> -2, b -> 0, c -> 1, d -> 8, m -> 0, n -> -3, p -> -8},
{a -> -2, b -> 0, c -> 1, d -> 9, m -> 0, n -> -3, p -> -9},
{a -> -2, b -> 0, c -> 1, d -> 10, m -> 0, n -> -3, p -> -10},
{a -> -2, b -> 1, c -> -1, d -> -3, m -> 0, n -> -3, p -> -2},
{a -> -2, b -> 1, c -> -1, d -> -2, m -> 0, n -> -3, p -> -1},
{a -> -2, b -> 1, c -> -1, d -> -1, m -> 0, n -> -3, p -> 0},
{a -> -2, b -> 1, c -> -1, d -> 0, m -> 0, n -> -3, p -> 1},
{a -> -2, b -> 1, c -> -1, d -> 9, m -> 0, n -> -1, p -> -8},
{a -> -2, b -> 1, c -> -1, d -> 10, m -> 0, n -> -1, p -> -9},
{a -> -2, b -> 1, c -> 0, d -> -3, m -> 0, n -> -2, p -> -2},
{a -> -2, b -> 1, c -> 0, d -> -2, m -> 0, n -> -2, p -> -1},
{a -> -2, b -> 1, c -> 0, d -> -1, m -> 0, n -> -2, p -> 0},
{a -> -2, b -> 1, c -> 0, d -> 0, m -> 0, n -> -2, p -> 1},
{a -> -2, b -> 1, c -> 0, d -> 1, m -> 0, n -> -2, p -> 0},
{a -> -2, b -> 1, c -> 0, d -> 2, m -> 0, n -> -2, p -> -1},
{a -> -2, b -> 1, c -> 0, d -> 3, m -> 0, n -> -2, p -> -2},
{a -> -2, b -> 1, c -> 0, d -> 4, m -> 0, n -> -2, p -> -3},
{a -> -2, b -> 1, c -> 0, d -> 5, m -> 0, n -> -2, p -> -4},
{a -> -2, b -> 1, c -> 0, d -> 6, m -> 0, n -> -2, p -> -5},
{a -> -2, b -> 1, c -> 0, d -> 7, m -> 0, n -> -2, p -> -6},
{a -> -2, b -> 1, c -> 0, d -> 8, m -> 0, n -> -2, p -> -7},
{a -> -2, b -> 1, c -> 0, d -> 9, m -> 0, n -> -2, p -> -8},
{a -> -2, b -> 1, c -> 0, d -> 10, m -> 0, n -> -2, p -> -9},
{a -> -2, b -> 1, c -> 1, d -> 0, m -> 0, n -> -3, p -> 1},
{a -> -2, b -> 1, c -> 1, d -> 1, m -> 0, n -> -3, p -> 0},
{a -> -2, b -> 1, c -> 1, d -> 2, m -> 0, n -> -3, p -> -1},
{a -> -2, b -> 1, c -> 1, d -> 3, m -> 0, n -> -3, p -> -2},
{a -> -2, b -> 1, c -> 1, d -> 4, m -> 0, n -> -3, p -> -3},
{a -> -2, b -> 1, c -> 1, d -> 5, m -> 0, n -> -3, p -> -4},
{a -> -2, b -> 1, c -> 1, d -> 6, m -> 0, n -> -3, p -> -5},
{a -> -2, b -> 1, c -> 1, d -> 7, m -> 0, n -> -3, p -> -6},
{a -> -2, b -> 1, c -> 1, d -> 8, m -> 0, n -> -3, p -> -7},
{a -> -2, b -> 1, c -> 1, d -> 9, m -> 0, n -> -3, p -> -8},
{a -> -2, b -> 1, c -> 1, d -> 10, m -> 0, n -> -3, p -> -9},
{a -> -2, b -> 2, c -> -1, d -> -3, m -> 0, n -> -3, p -> -1},
{a -> -2, b -> 2, c -> -1, d -> -2, m -> 0, n -> -3, p -> 0},
{a -> -2, b -> 2, c -> -1, d -> -1, m -> 0, n -> -3, p -> 1},
{a -> -2, b -> 2, c -> -1, d -> 9, m -> 0, n -> -1, p -> -7},
{a -> -2, b -> 2, c -> -1, d -> 10, m -> 0, n -> -1, p -> -8},
{a -> -2, b -> 2, c -> 0, d -> -3, m -> 0, n -> -2, p -> -1},
{a -> -2, b -> 2, c -> 0, d -> -2, m -> 0, n -> -2, p -> 0},
{a -> -2, b -> 2, c -> 0, d -> -1, m -> 0, n -> -2, p -> 1},
{a -> -2, b -> 2, c -> 0, d -> 1, m -> 0, n -> -2, p -> 1},
{a -> -2, b -> 2, c -> 0, d -> 2, m -> 0, n -> -2, p -> 0},
{a -> -2, b -> 2, c -> 0, d -> 3, m -> 0, n -> -2, p -> -1},
{a -> -2, b -> 2, c -> 0, d -> 4, m -> 0, n -> -2, p -> -2},
{a -> -2, b -> 2, c -> 0, d -> 5, m -> 0, n -> -2, p -> -3},
{a -> -2, b -> 2, c -> 0, d -> 6, m -> 0, n -> -2, p -> -4},
{a -> -2, b -> 2, c -> 0, d -> 7, m -> 0, n -> -2, p -> -5},
{a -> -2, b -> 2, c -> 0, d -> 8, m -> 0, n -> -2, p -> -6},
{a -> -2, b -> 2, c -> 0, d -> 9, m -> 0, n -> -2, p -> -7},
{a -> -2, b -> 2, c -> 0, d -> 10, m -> 0, n -> -2, p -> -8},
{a -> -2, b -> 2, c -> 1, d -> 1, m -> 0, n -> -3, p -> 1},
{a -> -2, b -> 2, c -> 1, d -> 2, m -> 0, n -> -3, p -> 0},
{a -> -2, b -> 2, c -> 1, d -> 3, m -> 0, n -> -3, p -> -1},
{a -> -2, b -> 2, c -> 1, d -> 4, m -> 0, n -> -3, p -> -2},
{a -> -2, b -> 2, c -> 1, d -> 5, m -> 0, n -> -3, p -> -3},
{a -> -2, b -> 2, c -> 1, d -> 6, m -> 0, n -> -3, p -> -4},
{a -> -2, b -> 2, c -> 1, d -> 7, m -> 0, n -> -3, p -> -5},
{a -> -2, b -> 2, c -> 1, d -> 8, m -> 0, n -> -3, p -> -6},
{a -> -2, b -> 2, c -> 1, d -> 9, m -> 0, n -> -3, p -> -7},
{a -> -2, b -> 2, c -> 1, d -> 10, m -> 0, n -> -3, p -> -8},
{a -> -1, b -> -2, c -> -2, d -> -3, m -> 0, n -> -3, p -> -5},
{a -> -1, b -> -2, c -> -2, d -> -2, m -> 0, n -> -3, p -> -4},
{a -> -1, b -> -2, c -> -2, d -> -1, m -> 0, n -> -3, p -> -3},
{a -> -1, b -> -2, c -> -2, d -> 0, m -> 0, n -> -3, p -> -2},
{a -> -1, b -> -2, c -> -2, d -> 1, m -> 0, n -> -3, p -> -1},
{a -> -1, b -> -2, c -> -2, d -> 2, m -> 0, n -> -3, p -> 0},
{a -> -1, b -> -2, c -> -1, d -> -3, m -> 0, n -> -2, p -> -5},
{a -> -1, b -> -2, c -> -1, d -> -2, m -> 0, n -> -2, p -> -4},
{a -> -1, b -> -2, c -> -1, d -> -1, m -> 0, n -> -2, p -> -3},
{a -> -1, b -> -2, c -> -1, d -> 0, m -> 0, n -> -2, p -> -2},
{a -> -1, b -> -2, c -> -1, d -> 1, m -> 0, n -> -2, p -> -1},
{a -> -1, b -> -2, c -> -1, d -> 9, m -> 0, n -> 0, p -> -11},
{a -> -1, b -> -2, c -> -1, d -> 10, m -> 0, n -> 0, p -> -12},
{a -> -1, b -> -2, c -> 0, d -> -3, m -> 0, n -> -1, p -> -5},
{a -> -1, b -> -2, c -> 0, d -> -2, m -> 0, n -> -1, p -> -4},
{a -> -1, b -> -2, c -> 0, d -> -1, m -> 0, n -> -1, p -> -3},
{a -> -1, b -> -2, c -> 0, d -> 0, m -> 0, n -> -1, p -> -2},
{a -> -1, b -> -2, c -> 0, d -> 1, m -> 0, n -> -1, p -> -3},
{a -> -1, b -> -2, c -> 0, d -> 2, m -> 0, n -> -1, p -> -4},
{a -> -1, b -> -2, c -> 0, d -> 3, m -> 0, n -> -1, p -> -5},
{a -> -1, b -> -2, c -> 0, d -> 4, m -> 0, n -> -1, p -> -6},
{a -> -1, b -> -2, c -> 0, d -> 5, m -> 0, n -> -1, p -> -7},
{a -> -1, b -> -2, c -> 0, d -> 6, m -> 0, n -> -1, p -> -8},
{a -> -1, b -> -2, c -> 0, d -> 7, m -> 0, n -> -1, p -> -9},
{a -> -1, b -> -2, c -> 0, d -> 8, m -> 0, n -> -1, p -> -10},
{a -> -1, b -> -2, c -> 0, d -> 9, m -> 0, n -> -1, p -> -11},
{a -> -1, b -> -2, c -> 0, d -> 10, m -> 0, n -> -1, p -> -12},
{a -> -1, b -> -2, c -> 1, d -> -1, m -> 0, n -> -2, p -> -1},
{a -> -1, b -> -2, c -> 1, d -> 0, m -> 0, n -> -2, p -> -2},
{a -> -1, b -> -2, c -> 1, d -> 1, m -> 0, n -> -2, p -> -3},
{a -> -1, b -> -2, c -> 1, d -> 2, m -> 0, n -> -2, p -> -4},
{a -> -1, b -> -2, c -> 1, d -> 3, m -> 0, n -> -2, p -> -5},
{a -> -1, b -> -2, c -> 1, d -> 4, m -> 0, n -> -2, p -> -6},
{a -> -1, b -> -2, c -> 1, d -> 5, m -> 0, n -> -2, p -> -7},
{a -> -1, b -> -2, c -> 1, d -> 6, m -> 0, n -> -2, p -> -8},
{a -> -1, b -> -2, c -> 1, d -> 7, m -> 0, n -> -2, p -> -9},
{a -> -1, b -> -2, c -> 1, d -> 8, m -> 0, n -> -2, p -> -10},
{a -> -1, b -> -2, c -> 1, d -> 9, m -> 0, n -> -2, p -> -11},
{a -> -1, b -> -2, c -> 1, d -> 10, m -> 0, n -> -2, p -> -12},
{a -> -1, b -> -2, c -> 2, d -> -2, m -> 0, n -> -3, p -> 0},
{a -> -1, b -> -2, c -> 2, d -> -1, m -> 0, n -> -3, p -> -1},
{a -> -1, b -> -2, c -> 2, d -> 0, m -> 0, n -> -3, p -> -2},
{a -> -1, b -> -2, c -> 2, d -> 1, m -> 0, n -> -3, p -> -3},
{a -> -1, b -> -2, c -> 2, d -> 2, m -> 0, n -> -3, p -> -4},
{a -> -1, b -> -2, c -> 2, d -> 3, m -> 0, n -> -3, p -> -5},
{a -> -1, b -> -2, c -> 2, d -> 4, m -> 0, n -> -3, p -> -6},
{a -> -1, b -> -2, c -> 2, d -> 5, m -> 0, n -> -3, p -> -7},
{a -> -1, b -> -2, c -> 2, d -> 6, m -> 0, n -> -3, p -> -8},
{a -> -1, b -> -2, c -> 2, d -> 7, m -> 0, n -> -3, p -> -9},
{a -> -1, b -> -2, c -> 2, d -> 8, m -> 0, n -> -3, p -> -10},
{a -> -1, b -> -2, c -> 2, d -> 9, m -> 0, n -> -3, p -> -11},
{a -> -1, b -> -2, c -> 2, d -> 10, m -> 0, n -> -3, p -> -12},
{a -> -1, b -> -1, c -> -2, d -> -3, m -> 0, n -> -3, p -> -4},
{a -> -1, b -> -1, c -> -2, d -> -2, m -> 0, n -> -3, p -> -3},
{a -> -1, b -> -1, c -> -2, d -> -1, m -> 0, n -> -3, p -> -2},
{a -> -1, b -> -1, c -> -2, d -> 0, m -> 0, n -> -3, p -> -1},
{a -> -1, b -> -1, c -> -2, d -> 1, m -> 0, n -> -3, p -> 0},
{a -> -1, b -> -1, c -> -2, d -> 2, m -> 0, n -> -3, p -> 1},
{a -> -1, b -> -1, c -> -1, d -> -3, m -> 0, n -> -2, p -> -4},
{a -> -1, b -> -1, c -> -1, d -> -2, m -> 0, n -> -2, p -> -3},
{a -> -1, b -> -1, c -> -1, d -> -1, m -> 0, n -> -2, p -> -2},
{a -> -1, b -> -1, c -> -1, d -> 0, m -> 0, n -> -2, p -> -1},
{a -> -1, b -> -1, c -> -1, d -> 1, m -> 0, n -> -2, p -> 0},
{a -> -1, b -> -1, c -> -1, d -> 9, m -> 0, n -> 0, p -> -10},
{a -> -1, b -> -1, c -> -1, d -> 10, m -> 0, n -> 0, p -> -11},
{a -> -1, b -> -1, c -> 0, d -> -3, m -> 0, n -> -1, p -> -4},
{a -> -1, b -> -1, c -> 0, d -> -2, m -> 0, n -> -1, p -> -3},
{a -> -1, b -> -1, c -> 0, d -> -1, m -> 0, n -> -1, p -> -2},
{a -> -1, b -> -1, c -> 0, d -> 0, m -> 0, n -> -1, p -> -1},
{a -> -1, b -> -1, c -> 0, d -> 1, m -> 0, n -> -1, p -> -2},
{a -> -1, b -> -1, c -> 0, d -> 2, m -> 0, n -> -1, p -> -3},
{a -> -1, b -> -1, c -> 0, d -> 3, m -> 0, n -> -1, p -> -4},
{a -> -1, b -> -1, c -> 0, d -> 4, m -> 0, n -> -1, p -> -5},
{a -> -1, b -> -1, c -> 0, d -> 5, m -> 0, n -> -1, p -> -6},
{a -> -1, b -> -1, c -> 0, d -> 6, m -> 0, n -> -1, p -> -7},
{a -> -1, b -> -1, c -> 0, d -> 7, m -> 0, n -> -1, p -> -8},
{a -> -1, b -> -1, c -> 0, d -> 8, m -> 0, n -> -1, p -> -9},
{a -> -1, b -> -1, c -> 0, d -> 9, m -> 0, n -> -1, p -> -10},
{a -> -1, b -> -1, c -> 0, d -> 10, m -> 0, n -> -1, p -> -11},
{a -> -1, b -> -1, c -> 1, d -> -1, m -> 0, n -> -2, p -> 0},
{a -> -1, b -> -1, c -> 1, d -> 0, m -> 0, n -> -2, p -> -1},
{a -> -1, b -> -1, c -> 1, d -> 1, m -> 0, n -> -2, p -> -2},
{a -> -1, b -> -1, c -> 1, d -> 2, m -> 0, n -> -2, p -> -3},
{a -> -1, b -> -1, c -> 1, d -> 3, m -> 0, n -> -2, p -> -4},
{a -> -1, b -> -1, c -> 1, d -> 4, m -> 0, n -> -2, p -> -5},
{a -> -1, b -> -1, c -> 1, d -> 5, m -> 0, n -> -2, p -> -6},
{a -> -1, b -> -1, c -> 1, d -> 6, m -> 0, n -> -2, p -> -7},
{a -> -1, b -> -1, c -> 1, d -> 7, m -> 0, n -> -2, p -> -8},
{a -> -1, b -> -1, c -> 1, d -> 8, m -> 0, n -> -2, p -> -9},
{a -> -1, b -> -1, c -> 1, d -> 9, m -> 0, n -> -2, p -> -10},
{a -> -1, b -> -1, c -> 1, d -> 10, m -> 0, n -> -2, p -> -11},
{a -> -1, b -> -1, c -> 2, d -> -2, m -> 0, n -> -3, p -> 1},
{a -> -1, b -> -1, c -> 2, d -> -1, m -> 0, n -> -3, p -> 0},
{a -> -1, b -> -1, c -> 2, d -> 0, m -> 0, n -> -3, p -> -1},
{a -> -1, b -> -1, c -> 2, d -> 1, m -> 0, n -> -3, p -> -2},
{a -> -1, b -> -1, c -> 2, d -> 2, m -> 0, n -> -3, p -> -3},
{a -> -1, b -> -1, c -> 2, d -> 3, m -> 0, n -> -3, p -> -4},
{a -> -1, b -> -1, c -> 2, d -> 4, m -> 0, n -> -3, p -> -5},
{a -> -1, b -> -1, c -> 2, d -> 5, m -> 0, n -> -3, p -> -6},
{a -> -1, b -> -1, c -> 2, d -> 6, m -> 0, n -> -3, p -> -7},
{a -> -1, b -> -1, c -> 2, d -> 7, m -> 0, n -> -3, p -> -8},
{a -> -1, b -> -1, c -> 2, d -> 8, m -> 0, n -> -3, p -> -9},
{a -> -1, b -> -1, c -> 2, d -> 9, m -> 0, n -> -3, p -> -10},
{a -> -1, b -> -1, c -> 2, d -> 10, m -> 0, n -> -3, p -> -11},
{a -> -1, b -> 0, c -> -2, d -> -3, m -> 0, n -> -3, p -> -3},
{a -> -1, b -> 0, c -> -2, d -> -2, m -> 0, n -> -3, p -> -2},
{a -> -1, b -> 0, c -> -2, d -> -1, m -> 0, n -> -3, p -> -1},
{a -> -1, b -> 0, c -> -2, d -> 0, m -> 0, n -> -3, p -> 0},
{a -> -1, b -> 0, c -> -2, d -> 1, m -> 0, n -> -3, p -> 1},
{a -> -1, b -> 0, c -> -1, d -> -3, m -> 0, n -> -2, p -> -3},
{a -> -1, b -> 0, c -> -1, d -> -2, m -> 0, n -> -2, p -> -2},
{a -> -1, b -> 0, c -> -1, d -> -1, m -> 0, n -> -2, p -> -1},
{a -> -1, b -> 0, c -> -1, d -> 0, m -> 0, n -> -2, p -> 0},
{a -> -1, b -> 0, c -> -1, d -> 1, m -> 0, n -> -2, p -> 1},
{a -> -1, b -> 0, c -> -1, d -> 9, m -> 0, n -> 0, p -> -9},
{a -> -1, b -> 0, c -> -1, d -> 10, m -> 0, n -> 0, p -> -10},
{a -> -1, b -> 0, c -> 0, d -> -3, m -> 0, n -> -1, p -> -3},
{a -> -1, b -> 0, c -> 0, d -> -2, m -> 0, n -> -1, p -> -2},
{a -> -1, b -> 0, c -> 0, d -> -1, m -> 0, n -> -1, p -> -1},
{a -> -1, b -> 0, c -> 0, d -> 0, m -> 0, n -> -1, p -> 0},
{a -> -1, b -> 0, c -> 0, d -> 1, m -> 0, n -> -1, p -> -1},
{a -> -1, b -> 0, c -> 0, d -> 2, m -> 0, n -> -1, p -> -2},
{a -> -1, b -> 0, c -> 0, d -> 3, m -> 0, n -> -1, p -> -3},
{a -> -1, b -> 0, c -> 0, d -> 4, m -> 0, n -> -1, p -> -4},
{a -> -1, b -> 0, c -> 0, d -> 5, m -> 0, n -> -1, p -> -5},
{a -> -1, b -> 0, c -> 0, d -> 6, m -> 0, n -> -1, p -> -6},
{a -> -1, b -> 0, c -> 0, d -> 7, m -> 0, n -> -1, p -> -7},
{a -> -1, b -> 0, c -> 0, d -> 8, m -> 0, n -> -1, p -> -8},
{a -> -1, b -> 0, c -> 0, d -> 9, m -> 0, n -> -1, p -> -9},
{a -> -1, b -> 0, c -> 0, d -> 10, m -> 0, n -> -1, p -> -10},
{a -> -1, b -> 0, c -> 1, d -> -1, m -> 0, n -> -2, p -> 1},
{a -> -1, b -> 0, c -> 1, d -> 0, m -> 0, n -> -2, p -> 0},
{a -> -1, b -> 0, c -> 1, d -> 1, m -> 0, n -> -2, p -> -1},
{a -> -1, b -> 0, c -> 1, d -> 2, m -> 0, n -> -2, p -> -2},
{a -> -1, b -> 0, c -> 1, d -> 3, m -> 0, n -> -2, p -> -3},
{a -> -1, b -> 0, c -> 1, d -> 4, m -> 0, n -> -2, p -> -4},
{a -> -1, b -> 0, c -> 1, d -> 5, m -> 0, n -> -2, p -> -5},
{a -> -1, b -> 0, c -> 1, d -> 6, m -> 0, n -> -2, p -> -6},
{a -> -1, b -> 0, c -> 1, d -> 7, m -> 0, n -> -2, p -> -7},
{a -> -1, b -> 0, c -> 1, d -> 8, m -> 0, n -> -2, p -> -8},
{a -> -1, b -> 0, c -> 1, d -> 9, m -> 0, n -> -2, p -> -9},
{a -> -1, b -> 0, c -> 1, d -> 10, m -> 0, n -> -2, p -> -10},
{a -> -1, b -> 0, c -> 2, d -> -1, m -> 0, n -> -3, p -> 1},
{a -> -1, b -> 0, c -> 2, d -> 0, m -> 0, n -> -3, p -> 0},
{a -> -1, b -> 0, c -> 2, d -> 1, m -> 0, n -> -3, p -> -1},
{a -> -1, b -> 0, c -> 2, d -> 2, m -> 0, n -> -3, p -> -2},
{a -> -1, b -> 0, c -> 2, d -> 3, m -> 0, n -> -3, p -> -3},
{a -> -1, b -> 0, c -> 2, d -> 4, m -> 0, n -> -3, p -> -4},
{a -> -1, b -> 0, c -> 2, d -> 5, m -> 0, n -> -3, p -> -5},
{a -> -1, b -> 0, c -> 2, d -> 6, m -> 0, n -> -3, p -> -6},
{a -> -1, b -> 0, c -> 2, d -> 7, m -> 0, n -> -3, p -> -7},
{a -> -1, b -> 0, c -> 2, d -> 8, m -> 0, n -> -3, p -> -8},
{a -> -1, b -> 0, c -> 2, d -> 9, m -> 0, n -> -3, p -> -9},
{a -> -1, b -> 0, c -> 2, d -> 10, m -> 0, n -> -3, p -> -10},
{a -> -1, b -> 1, c -> -2, d -> -3, m -> 0, n -> -3, p -> -2},
{a -> -1, b -> 1, c -> -2, d -> -2, m -> 0, n -> -3, p -> -1},
{a -> -1, b -> 1, c -> -2, d -> -1, m -> 0, n -> -3, p -> 0},
{a -> -1, b -> 1, c -> -2, d -> 0, m -> 0, n -> -3, p -> 1},
{a -> -1, b -> 1, c -> -1, d -> -3, m -> 0, n -> -2, p -> -2},
{a -> -1, b -> 1, c -> -1, d -> -2, m -> 0, n -> -2, p -> -1},
{a -> -1, b -> 1, c -> -1, d -> -1, m -> 0, n -> -2, p -> 0},
{a -> -1, b -> 1, c -> -1, d -> 0, m -> 0, n -> -2, p -> 1},
{a -> -1, b -> 1, c -> -1, d -> 9, m -> 0, n -> 0, p -> -8},
{a -> -1, b -> 1, c -> -1, d -> 10, m -> 0, n -> 0, p -> -9},
{a -> -1, b -> 1, c -> 0, d -> -3, m -> 0, n -> -1, p -> -2},
{a -> -1, b -> 1, c -> 0, d -> -2, m -> 0, n -> -1, p -> -1},
{a -> -1, b -> 1, c -> 0, d -> -1, m -> 0, n -> -1, p -> 0},
{a -> -1, b -> 1, c -> 0, d -> 0, m -> 0, n -> -1, p -> 1},
{a -> -1, b -> 1, c -> 0, d -> 1, m -> 0, n -> -1, p -> 0},
{a -> -1, b -> 1, c -> 0, d -> 2, m -> 0, n -> -1, p -> -1},
{a -> -1, b -> 1, c -> 0, d -> 3, m -> 0, n -> -1, p -> -2},
{a -> -1, b -> 1, c -> 0, d -> 4, m -> 0, n -> -1, p -> -3},
{a -> -1, b -> 1, c -> 0, d -> 5, m -> 0, n -> -1, p -> -4},
{a -> -1, b -> 1, c -> 0, d -> 6, m -> 0, n -> -1, p -> -5},
{a -> -1, b -> 1, c -> 0, d -> 7, m -> 0, n -> -1, p -> -6},
{a -> -1, b -> 1, c -> 0, d -> 8, m -> 0, n -> -1, p -> -7},
{a -> -1, b -> 1, c -> 0, d -> 9, m -> 0, n -> -1, p -> -8},
{a -> -1, b -> 1, c -> 0, d -> 10, m -> 0, n -> -1, p -> -9},
{a -> -1, b -> 1, c -> 1, d -> 0, m -> 0, n -> -2, p -> 1},
{a -> -1, b -> 1, c -> 1, d -> 1, m -> 0, n -> -2, p -> 0},
{a -> -1, b -> 1, c -> 1, d -> 2, m -> 0, n -> -2, p -> -1},
{a -> -1, b -> 1, c -> 1, d -> 3, m -> 0, n -> -2, p -> -2},
{a -> -1, b -> 1, c -> 1, d -> 4, m -> 0, n -> -2, p -> -3},
{a -> -1, b -> 1, c -> 1, d -> 5, m -> 0, n -> -2, p -> -4},
{a -> -1, b -> 1, c -> 1, d -> 6, m -> 0, n -> -2, p -> -5},
{a -> -1, b -> 1, c -> 1, d -> 7, m -> 0, n -> -2, p -> -6},
{a -> -1, b -> 1, c -> 1, d -> 8, m -> 0, n -> -2, p -> -7},
{a -> -1, b -> 1, c -> 1, d -> 9, m -> 0, n -> -2, p -> -8},
{a -> -1, b -> 1, c -> 1, d -> 10, m -> 0, n -> -2, p -> -9},
{a -> -1, b -> 1, c -> 2, d -> 0, m -> 0, n -> -3, p -> 1},
{a -> -1, b -> 1, c -> 2, d -> 1, m -> 0, n -> -3, p -> 0},
{a -> -1, b -> 1, c -> 2, d -> 2, m -> 0, n -> -3, p -> -1},
{a -> -1, b -> 1, c -> 2, d -> 3, m -> 0, n -> -3, p -> -2},
{a -> -1, b -> 1, c -> 2, d -> 4, m -> 0, n -> -3, p -> -3},
{a -> -1, b -> 1, c -> 2, d -> 5, m -> 0, n -> -3, p -> -4},
{a -> -1, b -> 1, c -> 2, d -> 6, m -> 0, n -> -3, p -> -5},
{a -> -1, b -> 1, c -> 2, d -> 7, m -> 0, n -> -3, p -> -6},
{a -> -1, b -> 1, c -> 2, d -> 8, m -> 0, n -> -3, p -> -7},
{a -> -1, b -> 1, c -> 2, d -> 9, m -> 0, n -> -3, p -> -8},
{a -> -1, b -> 1, c -> 2, d -> 10, m -> 0, n -> -3, p -> -9}} *)
(* {{a -> -9, b -> 51, c -> -4, d -> 10, m -> -2, n -> 19},
{a -> -9, b -> 51, c -> 4, d -> -10, m -> -2, n -> 19},
{a -> -4, b -> 10, c -> -9, d -> 51, m -> -2, n -> 19},
{a -> -4, b -> 10, c -> 9, d -> -51, m -> -2, n -> 19},
{a -> 4, b -> -10, c -> -9, d -> 51, m -> -2, n -> 19},
{a -> 4, b -> -10, c -> 9, d -> -51, m -> -2, n -> 19},
{a -> 9, b -> -51, c -> -4, d -> 10, m -> -2, n -> 19},
{a -> 9, b -> -51, c -> 4, d -> -10, m -> -2, n -> 19}} *)