1: \(B=\dfrac{x\sqrt{x}-2x+28-x+8\sqrt{x}-16-x-9\sqrt{x}-8}{\left(\sqrt{x}+1\right)\left(\sqrt{x}-4\right)}\)
\(=\dfrac{x\sqrt{x}-4x-\sqrt{x}+4}{\left(\sqrt{x}+1\right)\left(\sqrt{x}-4\right)}=\sqrt{x}-1\)
2: Để P là số nguyên thì \(4\sqrt{x}-4⋮\sqrt{x}+4\)
\(\Leftrightarrow\sqrt{x}+4\in\left\{4;5;10;20\right\}\)
hay \(x\in\left\{0;1;36;256\right\}\)

