Factorial and linear Equation