Gọi \(a;b;c\) là các cạnh tam vuông
Theo đề bài ta có :
\(\left\{{}\begin{matrix}a^2+b^2=c^2\\\dfrac{1}{2}ab=\left(a+b+c\right)\end{matrix}\right.\) \(\Leftrightarrow\left\{{}\begin{matrix}a^2+b^2=c^2\left(1\right)\\ab=2\left(a+b+c\right)\left(2\right)\end{matrix}\right.\)
\(\left(1\right)\Leftrightarrow c^2=\left(a+b\right)^2-2ab\)
\(\Leftrightarrow c^2=\left(a+b\right)^2-4\left(a+b+c\right)\) (do (2))
\(\Leftrightarrow c^2+4=\left(a+b\right)^2-4\left(a+b\right)-4c+4\)
\(\Leftrightarrow\left(a+b\right)^2-4\left(a+b\right)+4=c^2+4c+4\)
\(\Leftrightarrow\left(a+b-2\right)^2=\left(c+2\right)^2\)
\(\Leftrightarrow a+b-2=c+2\left(đk:a+b\ge2\right)\)
\(\Leftrightarrow c=a+b-4\)
Thay vào \(\left(2\right)\) ta được
\(ab=2\left(a+b+a+b-4\right)\)
\(\Leftrightarrow ab=4a+4b-8\)
\(\Leftrightarrow ab-4a-4b+16=8\)
\(\Leftrightarrow a\left(b-4\right)-4\left(b-4\right)=8\)
\(\Leftrightarrow\left(a-4\right)\left(b-4\right)=8\)
\(\Leftrightarrow\left(a-4\right);\left(b-4\right)\in\left\{1;2;4;8\right\}\)
\(\Leftrightarrow\left(a;b\right)\in\left\{\left(5;12\right);\left(6;8\right);\left(8;6\right);\left(12;5\right)\right\}\)
\(\Leftrightarrow\left(a;b;c\right)\in\left\{\left(5;12;13\right);\left(6;8;10\right);\left(8;6;10\right);\left(12;5;13\right)\right\}\) thỏa đề bài