Để A nguyên thì \(x^2-4x-4⋮x-7\)
\(\Rightarrow x^2+3x-7x-21+17⋮x-7\)
\(\Rightarrow\left(x-7\right)\left(x+3\right)+17⋮x-7\)
Mà \(\left(x-7\right)\left(x+3\right)⋮x-7\)
\(\Rightarrow17⋮x-7\)
\(\Rightarrow x-7\in\left\{1;17;-1;-17\right\}\)
\(\Rightarrow x\in\left\{8;24;6;-10\right\}\)
\(\text{A=}\frac{x^2-4x-4}{x-7}\)
\(=\frac{x^2-4x-21+17}{x-7}\)
\(=\frac{x^2+3x-7x-21}{x-7}+\frac{17}{x-7}\)
\(=\frac{x\left(x+3\right)-7\left(x+3\right)}{x-7}+\frac{17}{x-7}\)
\(=\frac{\left(x-7\right)\left(x+3\right)}{x-7}+\frac{17}{x-7}\)
\(=\left(x+3\right)+\frac{17}{x-7}\)
Vì \(3\in Z\)
\(\Leftrightarrow x+3\in Z\)
\(\Rightarrow\text{A}\in Z\text{ khi }\frac{17}{x-7}\in Z\)
\(\Leftrightarrow\left(x-7\right)\inƯ\left(17\right)=\left\{1;-1;17;-17\right\}\)
\(\Leftrightarrow x=\left\{8;6;24;-10\right\}\)
Vậy với \(x=\left\{-10;6;8;24\right\}\)thì A có giá trị nguyên
Để A là số nguyê thì:
\(x^2-4x-4⋮x-7\)
\(x^2+3x-7x-21+17⋮x-7\)
\(\left(x-7\right)\left(x-3\right)+17⋮x-7\)
Mà \(\left(x-7\right)\left(x-3\right)⋮x-7\)nên
\(17⋮x-7\)
\(x-7\inƯ\left(17\right)=\left\{-1;1;-17;17\right\}\)
x={8;24;6;-10}