kunalcvrce wrote:

Total number of factors of 3 in 300!=157

Total number of factors of 3 in 100!=57

[300/3]+[300/3^2]+[300/3^3]+[300/3^4]+[300/3^5]+[300/3^6]=157

formula is summation of [number/factor(increase the factor)]

you can do similarly for 100!

Hope u get it..

Still not sure how you calculated 157... If I calculate it, the number of factor 3 in 300! is 148 and in 100! it's 48 (still the same result though.

I think you went one step too far, 3^6 is already 729, and you "can't divide" 300 by 729.

Best,

T