\(\left(x-y\right)\left(y+1\right)+y=15\)
=>\(\left(x-y\right)\left(y+1\right)+y+1=16\)
=>(y+1)(x-y+1)=16
mà x,y là các số tự nhiên
nên \(\left(y+1\right)\left(x-y+1\right)=1\cdot16=2\cdot8=4\cdot4=8\cdot2=16\cdot1\)
=>\(\left(y+1;x-y+1\right)\in\left\{\left(1;16\right);\left(2;8\right);\left(4;4\right);\left(8;2\right);\left(16;1\right)\right\}\)
=>\(\left(y;x-y+1\right)\in\left\{\left(0;16\right);\left(1;8\right);\left(3;4\right);\left(7;2\right);\left(15;1\right)\right\}\)
=>\(\left(y,x\right)\in\left\{\left(0;15\right);\left(1;8\right);\left(3;6\right);\left(7;8\right);\left(15;15\right)\right\}\)