|
|
|
|
|
by Y_Y
838 days ago
|
|
https://en.wikipedia.org/wiki/P-adic_valuation It's nothing fancy, get the prime power decomposition of your number and pick the exponent of p. There's a clever way to do that for a factorial, but I have the Pari/GP app on my phone so I just did: valuation(52!,2)
which gives the answer 49, so 52! is divisible by 2 forty-nine times. Interestingly chatgpt4 turbo got it right with no extra prodding needed. |
|