What is the remainder when 1 ! + 2 ! + 3 ! + 4 ! + 5 ! + ⋯ + 1 0 0 ! is divided by 1 0 2 ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
1 0 2 5 1 1 7 1 2 3 1 7
Therefore after 16 each factorials will be divisible by 102.
Let's start to calculate the remainder for each factorials: number 1 2 3 4 5 6 ⋮ calculation 1 1 × 2 2 × 3 6 × 4 2 4 × 5 ( m o d 1 0 2 ) 1 8 × 6 remainder 2 6 2 4 1 8 1 0 8 If you continue that: n = 1 ∑ 1 6 n ! ( m o d 1 0 2 ) = 6 3
can you explain mod
Log in to reply
What should I explain? What is mod?
Log in to reply
yes a little about mod
Log in to reply
@Srijan Singh – Mod means remainder. a mod b means that if we divide a with b, then we will get a mod b as remainder. link or
Hey! Is there any good way instead of just summing till 1 6 ! ? (boxed to show not an exclamation)
Log in to reply
yah! i also want a good way
Hmmm.... There is a way. 21.5% to get the correct answer :)
Srijan, there is no other easy non-numerical method.
anyone please write the solution
1 2 3 4 5 6 7 |
|
The answer is : 63
This is my first Python program I made on my own, and I don't know anything about Python!
Log in to reply
@Páll Márton - Is my Python correct? I'm a JS(OOP, SQL) programmer so I dunno a single thing about Python :)
Log in to reply
I'm a python programmer .from my side it is correct but you calculated the sum of factorial from google.
It is correct.
Log in to reply
@A Former Brilliant Member – how do you solve
Your code is correct
Problem Loading...
Note Loading...
Set Loading...
Since 1 0 2 = 2 × 3 × 1 7 , n ! m o d 1 0 2 = 0 for all n ≥ 1 7 . Therefore we have:
n = 1 ∑ 1 0 0 n ! ≡ 1 ! + 2 ! + 3 ! + 4 ! + 5 ! + ⋯ + 1 6 ! (mod 102) = 1 + 2 + 6 + 2 4 + ( 4 ! ) 5 + ⋯ + 1 6 ! (mod 102) = 3 3 + ( 2 4 ) 5 + ( 5 ! ) 6 + ⋯ + 1 6 ! (mod 102) = 3 3 + 1 8 + ( 1 8 ) 6 + ⋯ + 1 6 ! (mod 102) = 5 1 + 6 + ( 6 ) 7 + ⋯ + 1 6 ! (mod 102) = 5 7 + 4 2 + ( 4 2 ) 8 + ⋯ + 1 6 ! (mod 102) = 9 9 + 3 0 + ( 3 0 ) 9 + ⋯ + 1 6 ! (mod 102) = 2 7 + 6 6 + ( 6 6 ) 1 0 + ⋯ + 1 6 ! (mod 102) = 9 3 + 4 8 + ( 4 8 ) 1 1 + ⋯ + 1 6 ! (mod 102) = 3 9 + 1 8 + ( 1 8 ) 1 2 + ⋯ + 1 6 ! (mod 102) = 5 7 + 1 2 + ( 1 2 ) 1 3 + 1 4 ! + 1 5 ! + 1 6 ! (mod 102) = 6 9 + 5 4 + ( 5 4 ) 1 4 + 1 5 ! + 1 6 ! (mod 102) = 2 1 + 4 2 + ( 4 2 ) 1 5 + 1 6 ! (mod 102) = 8 1 + 8 4 (mod 102) = 6 3 (mod 102)