Reducing Factorials

When solving math problems, sometimes you end up with very large numbers. To write less on the calculator, they include an exponent key. So when you type " 125 E 15 125E15 ", it means 125 1 0 15 125 * 10^{15} .

If you calculate 2018 ! 2018! to be exactly a E b a \, E \, b where a a and b b are positive integers. What the largest possible value of b b ? Notation: ! ! is the factorial notation. For example, 8 ! = 1 × 2 × 3 × × 8 8! = 1\times2\times3\times\cdots\times8 .


The answer is 502.

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.

2 solutions

Hector Ricardez
Aug 26, 2018

The problem is asking, whats the biggest power of 10 that divides 2018 ! 2018!

If we want to to know the answer, we need to find the number of factors of 2 2 and 5 5 in 2018 ! 2018! because 10 = 2 5 10 = 2 * 5 .

We can se that every multiple of 2 add a factor each, as 4 add one more factor (not two because one was alredy count as a multiple of 2), and 8,16, ...

The same happens with 5, 25, 125, 625, etc.

So the answer is m i n ( 2018 2 + 2018 4 + . . . + 2018 1024 , 2018 5 + 2018 25 + 2018 125 + 2018 625 ) = m i n ( 2011 , 502 ) min( \lfloor \frac{2018}{2}\rfloor + \lfloor \frac{2018}{4}\rfloor+...+ \lfloor \frac{2018}{1024}\rfloor,\ \lfloor \frac{2018}{5}\rfloor + \lfloor \frac{2018}{25}\rfloor+\lfloor \frac{2018}{125}\rfloor+ \lfloor \frac{2018}{625}\rfloor ) = min ( 2011, 502 ) , so 502 is the answer

I like your logic; it is the same as mine. However, you do not need to calculate how many times 2 goes into 2018 ! 2018! because for every time 5 goes into a number, a 2 goes into 2.5 more times. Therefore, the 5 function will always be the minimum.

Blan Morrison - 2 years, 9 months ago
Blan Morrison
Aug 27, 2018

First, we need to figure out how many factors of 2018! are multiples of 5 since there are always plenty of 2's to multiply with the 5's to make 10. We get this formula: 2018 5 = 403 \lfloor \frac{2018}{5}\rfloor = 403

However, that is not the end. Powers of 5, such as 25 125 need to be accounted for. Therefore, we need to add up how many times each of the powers of 5 go into 2018:

n = 1 2018 5 n = 502 \displaystyle\sum_{n=1}^{\infty} \lfloor \frac{2018}{5^n}\rfloor = \boxed{502}

In general, the amount of trailing zeroes that n ! n! contains can be represented as

z ( n ) = i = 1 n 5 i z(n)=\displaystyle\sum_{i=1}^{\infty} \lfloor \frac{n}{5^i}\rfloor

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...