Ok so this question is very easy with the formula (n/p)+ n/(p^2)+n/(p^3)+… but i struggle to find where it came from so this is my explanation for the logic behind this formula:
1. Given that n! = 1x2x…x(n-1)x(n)
2. If you want to find whether an integer i is the factor of n you can:
2.1 find the prime multiplier of the number i (all the little building blocks of i)
2.2 find the prime multiplier of the number n (all the little building blocks of n)
3. if prime multipliers of n contains all the prime multipliers of i then i is a factor of n
4. But don’t forget that n! Is the product of every numbers less than n so this means that i might also be a factor of these numbers! So how to find what are these numbers without writing them all out? Well, since we know i then the first number is i itself, the 2nd is 2i and so on until just before or equal to n. Thus when we write n/p, the quotient is the number of times i is the factor of n!. And surely if n very large, i^2 might be a factor of n! as well. Thus we find out the number of times i^2 is a factor of n! by finding the quotient of n/(p^2) in the formula. Repeat with p^3,p^4,… until quotient is <1 (denominator is no longer factor of n)
****BUT there is a catch here this only works when i is prime number!!!!! Any composite number should be broken down into product of prime numbers and the greatest prime number should be used. This is because there will be least number of the greatest prime number compared to other prime in n! and since this is n! Every prime building blocks of numbers are multiplied together and so we CANNOT treat composite number as one entity. These primes building blocks are all connected my multiplications regardless its original number******
5. When you add all the quotients up then this gives you the power of i that is the highest factor of n!
- So back to the question, what is the factor we want to find is 10^k this is broken down into (5^k)(2^k) and n! is 75!
- how many 5 are in 75! -> 75/5 = 15 therefore there are 15 5s in 75!
- how many 5^2 are in 75! -> 75/25 = 3 therefore there are 3 5^2 in 75! (Half of the 5 in 5^2 was counted as part of 15 5s)
- 5^3>75 there is no 5^3 in 75!
> therefore there are total of 15+3 = 18 5s in 75! -> k=18
Posted from my mobile device