DeathNoteFreak
If the greatest integer k for which \(3^{k}\) is a factor of n! is 8, what is the largest possible value of p so that \(5^{p}\) is a factor of n!?
(A) 2
(B) 3
(C) 4
(D) 5
(E) 6
The solution explained in the
OG seems very complicated to me. It would be great if someone explains how they arrived at the answer too!
Please give a kudos if you like the question!

Greatest integer k for which 3^k is a factor of n!, is a fancy way of asking how many 3's are present in n!.
Since it is given that k is 8, this means that the following numbers are present in the expansion of n!:
3,6,9,12,15,18
Each of the above number gives the following number of 3's
1,1,2,1,1,2 [3*1, 3*2, 3*3, 3*4, 3*5, 3*3*2], which sum to a total of '8'(1+1+2+1+1+2).
In the above case, we have considered n as 18, but even if we consider n as 20, the number of 3's would still be the same. It is only when we take n as 21 that another extra 3 gets added(21=3*7).
Also, as the question asks for the maximum value of p for 5^p to be a factor of n!(another fancy way of asking the number of 5's in n!), we can consider n as 20.
Numbers containing a 5 in the expansion of 20! would be 5,10,15,20(5*1,5*2,5*3,5*4) and each number is giving a single value of 5.
Therefore, the maximum value of p would be 1+1+1+1=4
Hope this helps.