All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Division by e (Posted on 2020-03-25) Difficulty: 4 of 5
Let [x] denote the closest integer to x.

Find the last 5 digits of [100000!/e]

No Solution Yet Submitted by Danish Ahmed Khan    
Rating: 5.0000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Solution | Comment 4 of 10 |
The Taylor series for e^x is sum[k=0 to inf] (x^k)/(k!).  
Substituting x=-1 means 1/e = e^(-1) = sum[k=0 to inf] ((-1)^k)/(k!)

Then 100000!/e can be written as 100000! * ( sum [k=0 to inf] ((-1)^k)/(k!) )
The first 100000 terms (k=0 to 99999) can be written as (-1)^k * 100000 * 99999!/k!. 
99999!/k! is an integer for integer k from 0 to 99999 which then means that all those terms are integer multiples of 100000.

The 100001st term (k=100000) is (-1)^100000 * 100000!/100000! = 1.  

The sum of the first 100001 terms will be an integer, any further terms will be fractional. This integer ends with the five digits 00001.

This series is a convergent alternating series, so the error of the sum of the first n terms is bounded by the (n+1)th term.  
In this case the error is the 100002th term (k=100001), which is (-1)^100001 * 100000!/100001! ~= -0.00000999990000099999....
This is so small it does not affect the nearest integer, so the last 5 digits of [100000!/e] are 00001.

  Posted by Brian Smith on 2020-03-27 21:05:13
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (2)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information