Math Problem 20

  • Thread starter Thread starter nitrocan
  • Start date Start date
Let f(n)=1*1!+2*2!+...+n*n!. Let's prove by induction that f(n)=(n+1)!-1
We have 1*1! = 2!-1 as a base case. Assume that f(k)=(k+1)!-1 for some k. Then f(k+1)=f(k)+(k+1)*(k+1)!=(k+1)!-1+(k+1)*(k+1)!=(k+1)!(1+k+1)-1=(k+2)!-1, completing the induction. Thus f(99)=100!-1. 100! ends in a bunch of zeros, the number of zeros is exactly the highest k such that 5^k goes into 100!. 100! contains the numbers 5,10,15,20,...,95,100, all of which are divisible by 5, with 25, 50, 75, 100 divisible by 25. Thus there's 24 zeros at the end of 100!. So f(99)=100!-1 ends in 24 9's.

Oh, and excel's not going to help at all, it'll round the number. If you need to use a program, mathematica =P or something else that won't give you large roundoff errors.

Wow, I was right about (100!)-1. But how would you know how many 9's are in the middle of the number without the usage of a calculator?

With BCalc, I got:

9.3326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916863999999999999999999999999e+157

Which does end in 24 9's
 
-_- r u dumb. Multiply and divide are of the same level, as are adding and subtracting. Bedmas has just become the norm. otherwise it could also be “sa” in the end instead of “as”
 
Wow, I was right about (100!)-1. But how would you know how many 9's are in the middle of the number without the usage of a calculator?

With BCalc, I got:

9.3326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916863999999999999999999999999e+157

Which does end in 24 9's

The question asks only about 9's at the end, not in the middle.
 
Solution: (Which has been found already)
n*n! = ((n+1) - 1) * n!
= (n+1)! - n!
So this can be rewritten as such:
2! - 1! + 3! - 2! + 4! - 3! + ....... + 100! - 99!
After the cancellations it's 100! - 1
100! has 24 0's at the end of it. (How many times the 5 factor is in 100! = 24)
So 100! - 1 would have 24 9's
 
Last edited by a moderator:
damnnnn thats a prety slick solution. i was looking for patterns in a table, and ended up with 9 9s. xD. wrong approach i guess. godd i am so gona fail cayley and galois (math contests). cayley is next wednesday.... TIME TO TRAIINNNN (plays rocky theme)
 
Back
Top