$(1)\;:$ How many ordered triplets of positive integers $(x,y,z)$ are there are such that $z! = x!+y!$
$(2)\;:$ How many ordered triplets of positive integers $(x,y,z)$ are there are such that
$w! = x!+y!+z!$
$\bf{Solution::}$ Given as ::Using $\bf{WLOG\;,}$ Let $z=A\times B \times C\;,\; y=B\times C\;,\; x=C$
So $AB=B+1\Rightarrow \displaystyle A=1+\frac{1}{B}.$ So $1<A\leq 2$
So the only possibility is $A=2,$ which is $(1,1,2)$
Similarly for $(b):$ Using $\bf{WLOG\;,}$
Let $w=A\times B \times C \times D\;,z=B\times C\times D\;,y=C\times D\;,x=D$
So $ABC=BC+C+1\Rightarrow \displaystyle A = 1+\frac{1}{B}+\frac{1}{BC}$
So $1<A \leq 3$. So $A=2$ is not possible . So only possibility is $A=3\;,$ which is $(3,2,2,2)$
Would anyone like to explain me the above solutions.
Thanks.