Nearest factorial given a number.

721 Views Asked by At

Hi suppose I have given a number lets say 344545.Is there a way to determine he nearest smallest factorial?

This is a Multiple choice question(one question 4 option).So what can be the fastest approach.A formal approach is also appreciated.

For 124 the nearest smallest factorial is 5!.so Ans is 5.