[Math] When is a factorial of a number equal to its triangular number

elementary-number-theoryfactorialsummation

Consider the set of all natural numbers $n$ for which the following proposition is true.

$$\sum_{k=1}^{n} k = \prod_{k=1}^{n} k$$

Here's an example:

$$\sum_{k=1}^{3}k = 1+2+3 = 6 = 1\cdot 2\cdot 3=\prod_{k=1}^{3}k$$

Therefore, $3$ is in this set.

Does this set include more than just $3$? If so, is this set finite or infinite? Furthermore, can this set be described by a rule or formula?

[Just a tidbit: This question indicates the triangular number $1+2+3+\cdots+n$ is called the termial of $n$ and is denoted $n?$. I'm all for it; let's see if it catches on.]

[Another tidbit: the factorial of $n$, written $n!$ and called "$n$-factorial," is abbreviated "$n$-bang" in spoken word.]

Best Answer

The only members of the set are $1$ and $3$: by actual computation $2$ is not in it, and by an easy induction argument the inequality $$\binom{n+1}2=\sum_{k=1}^nk<\prod_{k=1}^nk=n!$$ holds for all $n>3$.

Clearly $\binom{4+1}2=10<24=4!$. Suppose that $\binom{n+1}2<n!$ for some $n>3$. Then

$$\begin{align*} \sum_{k=1}^{n+1}k&=n+1+\sum_{k=1}^nk\\ &<n+1+n!&&\text{induction hypothesis}\\ &<2n!&&\text{since }n+1<n!\text{ for }n\ge3\\ &<(n+1)n!\\ &=(n+1)!\;, \end{align*}$$

and the result follows by induction.

Related Question