How to find all positive integers $a,b,c,d$ with $a\le\ b\le c$ such that $a!+b!+c!=3^d$ ? How to find all positive integers $a,b,c,d$ with $a\le\ b\le c$ such that $a!+b!+c!=3^d$ ? 

Let $X = a!+b!+c!$.


*

*$a = 1$, otherwise $2 | a! \land 2| b! \land 2| c! \implies 2 | X \implies X \ne 3^d$

*$b \le 2$, otherwise $X \equiv 1 + 0 + 0 \equiv 1 \pmod 3 \implies X \ne 3^d$.

*If $b = 1$, then $1 \le c \le 2$, otherwise, $X \equiv 1 + 1 + 0 \equiv 2 \pmod 3
\implies X \ne 3^d$.  

*If $b = 2$, then $2 \le c \le 5$, otherwise $X \equiv 1 + 2 + 0 \equiv 3 \pmod 9$.
Since $X > 3$ in this case, $X \ne 3^d$ once again.


Combine all these, there are only 6 candidates for $(a,b,c)$:
$$(1,1,1), (1,1,2), (1,2,2), (1,2,3), (1,2,4), (1,2,5)$$
By brute force, one can check three of them are solutions:
$$(1,1,1) \leadsto X = 3,\quad (1,2,3) \leadsto X = 9\quad\text{ and }\quad (1,2,4) \leadsto X = 27$$
