Let $k$ and $n$ be positive integers, find all pairs $(n,k)$ of positive integers such that $(n+1)^k-1=n!$
I tried $n$ from $1$ to $4$, and I guess $n$ should be a prime number.
Let $k$ and $n$ be positive integers, find all pairs $(n,k)$ of positive integers such that $(n+1)^k-1=n!$
I tried $n$ from $1$ to $4$, and I guess $n$ should be a prime number.
Copyright © 2021 JogjaFile Inc.
If $n+1$ is composite, then any prime dividing $n+1$ divides $n!$, but not $(n+1)^k-1$. Then $n+1$ is prime. Therefore, $n\le 2$ or $n$ is composite.
For $n=1$ we get easily the solution $n=k=1$.
For $n=2$ the equation becomes $$3^k-1=2$$ which clearly has only one solution, namely $k=1$.
So assume from now that $n$ is composite.
If $n=4$ the equation becomes $$5^k-1=24$$ that has the solution $k=2$.
If $n\ge 6$ then $(n-1)!$ is a multiple of $n$. Proof below.
The equation is equivalent to: $$\sum_{j=0}^{k-1}(n+1)^j=(n-1)!$$ So, since $n$ is composite, taking mod $n$ we get $n\mid k$. Then $k\ge n$. Thus,
$$(n+1)^k-1\ge(n+1)^n-1>n^n>n!$$
So there are no more solutions.
Proof that $n\ge 6$ and composite implies $n\mid (n-1)!$: If $n$ is the square of a prime $p$ then $p$ and $2p$ are among the factors of $(n-1)!$. Otherwise take the least prime divisor $p$ and $n/p$.