This question already has an answer here:
- How many bits are in factorial? 2 answers
Given the decimal integers N and B. How can the number of digits in N! in base B be calculated without calculating the value of N!?
Example: If N = 5 and B = 2, then N! = 5! = 120. Representing the value in base B, we get 1111000 which has 7 digits.
But I'm trying to get the result without calculating the value of N!.