\(\Leftrightarrow\left(a-b\right)\left(a^2+ab+b^2+3a+3b+3\right)=\left(a+1\right)\left(b+1\right)=25\)
\(\Leftrightarrow\left(a-b\right)\left(\left(a-b\right)^2+3\left(ab+a+b+1\right)\right)-\left(a+1\right)\left(b+1\right)=25\)
\(\Leftrightarrow\left(a-b\right)^3+3\left(a-b\right)\left(a+1\right)\left(b+1\right)-\left(a+1\right)\left(b+1\right)=25\)
\(\Leftrightarrow\left(a-b\right)^3+\left(a+1\right)\left(b+1\right)\left(3a-3b-1\right)=25\)
Với a,b bình đẳng ta giải sử \(a>b\)
\(\Rightarrow\left(a-b\right)^3>0\) vì a,b \(\in N^+\)
Vậy a-b là số lập phương
Mà \(\left(a+1\right)\left(b+1\right)\left(3a-3b-1\right)\ge0\)
\(\Rightarrow\left(a-b\right)^3\le25\)
Khi đó \(\left(a-b\right)^3=8\Rightarrow a-b=2\)
\(\Rightarrow\left(a+1\right)\left(b+1\right)\left(3a-3b-1\right)=25-8=16\)
Xét các ước