как параметр, можно решать разности квадратов.
Код:
(2, -16, -3)
(2, 0, -3)
(2, -4, 1)
(2, 8, 13)
(2, 4, 17)
(2, 20, 17)
(4, -64, -20)
(4, 2, -20)
(4, -30, -4)
(4, 0, -4)
(4, 8, 34)
(4, 38, 34)
(4, 6, 50)
(4, 72, 50)
(6, -144, -53)
(6, 4, -53)
(6, -44, -5)
(6, 0, -5)
(6, -24, 3)
(6, -4, 3)
(6, 16, 43)
(6, 36, 43)
(6, 12, 51)
(6, 56, 51)
(6, 8, 99)
(6, 156, 99)
(8, -256, -102)
(8, 6, -102)
(8, -124, -37)
(8, 4, -37)
(8, -80, -16)
(8, 2, -16)
(8, -58, -6)
(8, 0, -6)
(8, -36, 3)
(8, -4, 3)
(8, -16, 8)
(8, -14, 8)
(8, 30, 54)
(8, 32, 54)
(8, 20, 59)
(8, 52, 59)
(8, 16, 68)
(8, 74, 68)
(8, 14, 78)
(8, 96, 78)
(8, 12, 99)
(8, 140, 99)
(8, 10, 164)
(8, 272, 164)
(10, -400, -167)
(10, 8, -167)
(10, -72, -7)
(10, 0, -7)
(10, 20, 85)
(10, 92, 85)
(10, 12, 245)
(10, 420, 245)