I was playing around with factorials the other day, and I realized that $4!+5!$ is a perfect square. Perplexed by this result, I started looking for other pairs of factorials that produce a perfect square when added together (unbeknownst to me, I had stumbled across a well-known open problem in number theory). I could only find three: $1!+4!$, $1!+5!$, and $1!+7!$. Since $4!+5!$ seemed like an outlier, I decided to focus on the three which satisfy the formula $n!+1=m^2$. I turned to the main Math.SE chatroom, asking if there were any more, which is when I was informed that this is called Brocard's problem. Since it's a well-known open problem, I decided to put my own spin on it. It has probably been done before, but I can't find anything online.
What about the equation $n!+1=m^3$? As far as I know, there is no pair of integers that satisfies this equation. What if the conditions are relaxed? This brings me to the following question I came up with yesterday:
How many perfect cubes can be expressed as the sum of two or more unique integer factorials without subtractions, divisions, or multiplications of factorials?
Notice I said unique, meaning any factorial cannot appear more than once in a sum. With that in mind, I've only found three:$$ \begin{align}&2!+3!=8=2^3\\&1!+2!+4!=27=3^3\;\;\;\Bbb{and}\\&1!+2!+3!+6!=729=9^3\,.\end{align}$$Are there more solutions, or are these the only three?
Using this link, I've concluded any additional solution must have the factorials add up to be greater than $341^3$. Since I hardly have any experience with programming, I can't go much further on this problem… Any and all help would be greatly appreciated.
Note: My question is NOT a duplicate of this one. I'm not restricting my problem to the partial sums $S_n$ of the series $\displaystyle \sum_{k=1}^nk!$.
Best Answer
EDIT: Wrote a command to do sum of distinct factorials by greedy algorithm; here are the perfect powers I have, not allowing $0!$.
Did not get any more cubes yet.
Allowing $0!$ adds in the square $4,$ I'm not sure i see any other change. Not sure why the program is so very slow. As I said, if all you want is cubes, you can program in a greedy algorithm which, for each cube, will rapidly attempt a decomposition as distinct factorials (with repeat 1 for $0!$ if you wish ) and report success.