Skip to content

Lesson 6 of 11 · Remainders

Sum of factorials: where it stops

Number System · for IPMAT Indore, IPMAT Rohtak and JIPMAT · asked in Indore 2023 SA

Video lesson: Sum of factorials: where it stops

Sign in to watch · 4 min video

Worked examples

Example 5Typical

1+3+32+⋯+3200 mod 131+3+3^2+\dots+3^{200}\bmod13

Formulas you need

Sums of factorials modulo m

n!≡0(modm) once n! contains every prime power of m ⇒ ∑k=1Nk!≡∑k<k0k!(modm)n!\equiv0\pmod m\ \text{once }n!\text{ contains every prime power of }m\ \Rightarrow\ \sum_{k=1}^{N}k!\equiv\sum_{k<k_0}k!\pmod m

Indore 2023 Q8: 1! + ... + 95! mod 15 = (1 + 2 + 6 + 24) mod 15 = 3; modulo 40 the cut-off is 6!.

How Remainders is asked

  • remainder of a^n by 7, 9, 11, 13, 17
  • 11^1011 + 1011^11 mod 9 (Indore 2025 Q3); (29^29)^29 mod 9 (Indore 2019 Q23); 7^103 + 7^101 mod 9 (Indore 2026)
  • 1! + 2! + ... + 95! mod 15 (Indore 2023 Q8)
  • quotient x remainder = 24, sum 10, divisor 5 -> dividend (Indore 2020 Q1); N = 36k + 14 -> N mod 24
  • (p-1)! mod p (Wilson)
  • 123456...4950 mod 16 / 9 / 11
  • 1 + a + a^2 + ... + a^n mod m

Picked from the Remainders note for this micro-concept automatically. The whole note: Remainders.

Practise this free. Every mistake is saved and comes back until you fix it.

Start free