Consider the following for the next two (02) items that follow : Consider the sum S = 0! + 1! + 2! + 3! + 4! +... .+ 100!
If the sum S is divided by 8, what is the remainder ?
2
The question asks for the remainder when the sum S, defined as the sum of factorials from 0! up to 100!, is divided by 8. The sum is given by:
\(S = 0! + 1! + 2! + 3! + 4! + \dots + 100!\)
To find the remainder when S is divided by 8, we can find the remainder of each term when divided by 8 and then sum these remainders. The final remainder will be the remainder of this sum of remainders when divided by 8.
Let's calculate the first few factorial values and their remainders when divided by 8:
Notice that \(4!\) is a multiple of 8. Any factorial \(n!\) for \(n \ge 4\) can be written as:
\(n! = n \times (n-1) \times \dots \times 4 \times 3 \times 2 \times 1\)
Since \(n!\) contains the factor \(4!\) for \(n \ge 4\), and \(4!\) is divisible by 8, it means that \(n!\) is also divisible by 8 for all \(n \ge 4\). Therefore, the remainder of \(n!\) when divided by 8 is 0 for all \(n \ge 4\).
The sum S can be written as:
\(S = (0! + 1! + 2! + 3!) + (4! + 5! + \dots + 100!)\)
When finding the remainder of S divided by 8, we only need to consider the terms whose remainders are non-zero. From our calculation, only the first four terms (0!, 1!, 2!, and 3!) have non-zero remainders when divided by 8. All terms from 4! up to 100! have a remainder of 0 when divided by 8.
So, the remainder of S when divided by 8 is the same as the remainder of \((0! + 1! + 2! + 3!)\) when divided by 8.
Let's calculate the sum of these terms:
\(0! + 1! + 2! + 3! = 1 + 1 + 2 + 6 = 10\)
Now, we need to find the remainder when 10 is divided by 8.
\(10 \div 8\)
\(10 = 1 \times 8 + 2\)
The remainder is 2.
Thus, the remainder when the sum S is divided by 8 is 2.
| Term | Value | Remainder when divided by 8 |
|---|---|---|
| 0! | 1 | 1 |
| 1! | 1 | 1 |
| 2! | 2 | 2 |
| 3! | 6 | 6 |
| 4! | 24 | 0 |
| 5! | 120 | 0 |
| ... | ... | 0 |
| 100! | ... | 0 |
Sum of relevant remainders = \(1 + 1 + 2 + 6 = 10\). Remainder of \(10 \div 8\) is 2.
The remainder when the sum \(S = 0! + 1! + 2! + 3! + \dots + 100!\) is divided by 8 is 2.
| Concept | Description |
|---|---|
| Factorial (n!) | The product of all positive integers up to n. 0! is defined as 1. |
| Modular Arithmetic | A system of arithmetic for integers, where numbers "wrap around" upon reaching a certain value, called the modulus. Finding the remainder after division is an example. |
| Remainder Property | The remainder of a sum (a+b) divided by m is the same as the remainder of (remainder of a/m + remainder of b/m) divided by m. |
| Divisibility by 8 | A number is divisible by 8 if its last three digits form a number divisible by 8, or for factorials, if the number contains factors that multiply to 8. |
Understanding how factorials behave under modular arithmetic is key to solving problems like this. Factorials grow very rapidly. When considering a modulus \(m\), the factorial \(n!\) will eventually contain \(m\) as a factor (if \(m\) is prime or a product of smaller primes present in \(n!\)) or contain factors that multiply to \(m\).
For example, with modulus 8 (which is \(2^3\)):
This principle applies to other moduli as well. For any composite modulus \(m\), \(n!\) will be divisible by \(m\) for all sufficiently large \(n\).
Consider the following statements :
1. (25)! + 1 is divisible by 26
2. (6)! + 1 is divisible by 7
Which of the above statements is/are correct ?
If the sum S is divided by 60, what is the remainder ?
What is the Highest Common Factor of 2 3× 3 5and 3 3× 5 2?
Four prime numbers are arranged in ascending order. The product of the first three numbers is 255 and that of the last three is 1955. The largest prime number is:
Find the number of all prime numbers less than 55.
Value of the square root of \(\frac{36.1}{102.4}\) is:
For any natural number n, 6n - 5n always ends with