I have the same number, do you think there is a reason why they are not all valid?
EDIT: actually the number I calculate is 2796. Also using Python 2..
However, larger is the difference in how division works.
Python2: 3 / 2 => 1
Python3: 3 / 2 => 1.5
def f(a, b, c, d, e, f, g, h, i):
return a + int((13 * b * i + g * h * c) / (i * c)) + d + 12 * e - f - 11 - 10
If I try it like this, I still have the same number of solutions...
Maybe I'm missing something..EDIT: code formatting...