Question:medium

What is the remainder when $1!+2!+3!+\cdots+100!$ is divided by $7$? 

Show Hint

For factorial sums mod a prime $p$, everything from $p!$ onward is $0 \pmod p$.
Updated On: Jul 16, 2026
  • 0
  • 5
  • 3
Show Solution

The Correct Option is B

Solution and Explanation

Step 1: Since \( 6!=6\times5! \), the terms \( 5! \) and \( 6! \) combine as \[ 5!+6!=5!(1+6)=7\times5!, \] which is exactly divisible by \( 7 \) and so contributes nothing to the remainder.

Step 2: So only \( 1!+2!+3!+4!=1+2+6+24=33 \) affects the remainder, since every term from \( 7! \) onward is also a multiple of \( 7 \).

Step 3: Dividing, \( 33=7\times4+5 \), so \( 33\equiv5\pmod7 \).
\[ \boxed{5} \]
Was this answer helpful?
0


Questions Asked in SNAP exam