Consider the sum $S=x!+\sum_{i=0}^{2013}i!$, where $x$ is a one-digit nonnegative integer. How many possible values of $x$ are there so that S is divisible by 4?
2026-04-06 21:27:35.1775510855
On
A question about sums and factorials
135 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
4
There are 4 best solutions below
0
On
If we expand the sum, we get that $$0!+1!+2!+3!+4\left(\frac{4!}{4}+\frac{5!}{4}+...+\frac{2013!}{4}\right)=10+4\left(3!+\frac{5!}{4}+...+\frac{2013!}{4}\right).$$
We now have determined that $x!+10$ must be congruent to $0$ mod $4$.
HINT:
$$\sum_{i=0}^{2013}i!\equiv\sum_{i=0}^3i!\pmod 4\equiv 0!+1!+2!+3!=10 $$