Improve answers and fix typo
Change ceil to floor
Add note for gamma function in order to solve factorial equation