Đặt \(\left(x+1;y+1;z+4\right)=\left(a;b;c\right)\Rightarrow\left\{{}\begin{matrix}a;b;c>0\\a+b+c=6\end{matrix}\right.\)
\(A=\frac{\left(a-1\right)\left(b-1\right)-1}{ab}+\frac{c-4}{c}=\frac{ab-a-b}{ab}+\frac{c-4}{c}\)
\(A=2-\left(\frac{1}{a}+\frac{1}{b}+\frac{4}{c}\right)\le2-\frac{\left(1+1+2\right)^2}{a+b+c}=2-\frac{16}{6}=-\frac{2}{3}\)
\(A_{max}=-\frac{2}{3}\) khi \(\left(a;b;c\right)=\left(\frac{3}{2};\frac{3}{2};3\right)\) hay \(\left(x;y;z\right)=\left(\frac{1}{2};\frac{1}{2};-1\right)\)