Sunday, January 22, 2017

elementary number theory - What is the logic/theorem/derivation behind finding the exponent of p in n! By [n/p] + [n/p^2] + [n/p^3] + ....?



The exponent of prime number of 3 in 100! is 48. It means 100! is divisible by 348 E3(100!)=1003+10032+10033+10034=33+11+3+1=48

What is the derivation/math behind the above logic?



Answer



Think in this way....


If p is a prime number, actually you want to calculate what is the highest power of p that divides exactly some number n. Let n=100 & p=3 in your case.


1st step: Look for multiple of p through the n!


p,2p,3p,... and in order to get how many multiple of p, just divide n/p and take integer part of it.


Example: 3,6,9,12,15,18,..,99 will contain at least one power of 3


2nd step:Look for the multiple of p2.why? because it is the first number in n! which contain exactly two powers of p, if p2<=n.


p2,2p2,3p2,... and in order to get how many multiple of p2, just divide n/p2 and take integer part of it.


Example: 9,18,27,...,99 will contain at least two powers of 3.


3rd step:Look for the multiple of p3.why? because it is the first number in n! which contain exactly three powers of p, if p3<=n.



p3,2p3,3p3 and in order to get how many multiple of p3, just divide n/p3 and take integer part of it.


Example: 27,54,81 will contain at least three powers of 3.


4th step:Look for the multiple of p4.why? because it is the first number in n! which contain exactly four powers of p, if p4<=n.


p4 and in order to get how many multiple of p4, just divide n/p4 and take integer part of it.


Example: 81 will contain at least four powers of 3.


>=5 steps:since p5>n and so for highest power of p because $p^5

Final answer is: Ans(step1+step2+step3+step4).


However number of steps are totally dependent on n and p.


No comments:

Post a Comment

analysis - Injection, making bijection

I have injection f:AB and I want to get bijection. Can I just resting codomain to f(A)? I know that every function i...