18

The question was stimulated by this one. Here it comes:

When you look at the sum $\sum\limits_{k=1}^N k!$ for $N\geq 10$, you'll always find $3$ and $11$ among the prime factors, due to the fact that $$ \sum\limits_{k=1}^{10}k!=3^2\times 11\times 40787. $$ Increasing $N$ will give rise to factors $3$ resp. $11$.

Are $3$ and $11$ the only common prime factors in $\sum\limits_{k=1}^N k!$ for $N\geq 10$?

I think, one has to show, that $\sum\limits_{k=1}^{N}k!$ has a factor of $N+1$, because the upcoming sum will always share the $N+1$ factor as well. This happens for $$ \underbrace{1!+2!}_{\color{blue}{3}}+\color{blue}{3}! \text{ and } \underbrace{1!+2!+\cdots+10!}_{3^2\times \color{red}{11}\times 40787}+\color{red}{11}! $$

rtybase
  • 16,907
draks ...
  • 18,449
  • 8
    Let $a_p = \sum_{k=1}^p k!$. If we assume that $a_p \equiv 0 \mod p$ with "probability" $1/p$, then the expected number of times this happens for $p<N$ is $\log \log N$. This quantity is not larger then $3$ until $N$ is about 500,000,000. So the fact that you have only found two examples with a short search does not convince me that there are no more. – David E Speyer Mar 08 '12 at 16:18
  • 2
    By the way, I just checked up to the 500th prime, 3571, without finding another example. – David E Speyer Mar 08 '12 at 16:20
  • 4
    Checked for other examples for primes up to 15000000; none found. – Douglas S. Stones Dec 29 '12 at 22:27
  • The search up to $3571$ is slightly more surprising: $\sum_{11 < p \le 3571} 1/p$ is just under $1.1$, while $\sum_{3571 < p \le 15000000} 1/p$ is closer to $0.7$. The (marginal) odds only get slimmer from here on out. – Erick Wong Jan 13 '13 at 20:54
  • While fighting with the factorial sum, I found a nice closed formula at Mathworld ("Factorial sum"): $\frac{-e+Ei(1)+\Re[E_{n+2}(-1)]\Gamma(n+2)}e$. Attempts to prove it by induction led to $e+\Re(E_n(-1))=n\Re(E_{n+1}(1))$, which boils down to the recurrence relation (12) from Mathworld's $E_n$ function... – draks ... Feb 21 '18 at 06:54
  • The formula works fine. Put table round(N[(Ei(1)+Real(ExpIntegralE[(n+2), -1])*Gamma(n+2))/e-1]) n=1 to 15 at http://www.wolframalpha.com/ – draks ... Feb 21 '18 at 06:57
  • 3
    There is really little known about the distribution of factorials modulo a prime $p$. For instance, it is conjectured that the sequence $(n!)$ attains $\approx (1-\frac{1}{e})p$ residues modulo $p$ and it is known unconditionally that it is at least $$\frac{p\log\log p}{\log\log\log p}.$$ However, this does not help for your question. If I should guess an answer, I'd bet (given the "random" behaviour of the primes) that there are infinitely many primes $p$ such that $p\mid 1!+2!+\cdots+(p-1)!$. – Paolo Leonetti Feb 26 '18 at 16:48
  • 1
    It might be a good idea to make the problem statement unambiguous by explicitly pointing out you're looking for prime factors $p$ shared by all the sums with $N\geq (p-1)$, rather than using $N\geq 10$ (which would make the question trivial). – Peter Košinár Feb 26 '18 at 19:41
  • 1
    What do you mean by "common prime factors?" Do you mean in common among the various sums? – Chickenmancer Feb 26 '18 at 22:02
  • @Chickenmancer yes common for all sums like 3 and 11 for N>10 – draks ... Feb 26 '18 at 22:20

1 Answers1

2

As pointed out in the comments, the case is trivial( at least if you know some theorems) if you fix $n>10$, instead of $n>p-1$ for prime $p$.

It follows from Wilson's Theorem, that if you have a multiple of $p$ at index $n= p-2$ you won't at index $p-1$ because it will decrease out of being one for that index. $p>12$ implies at least $1$ index where it is NOT a multiple if it worked at index $11$. That leaves us with $p<12$ which would have to be factors of the sum up to $p-1$, $2$ is out as the sum is odd, $5$, needs $24+1+2+6=33$ to be a multiple of $5$, it isn't. Lastly $7$ needs $1+2+6+24+120+720=873$ to be a multiple which would force $33$ to be a multiple of $7$ which it isn't.