FiSGO.OrderSearch.smallest_factorial_from_bound

smallest_factorial_from_bound(bound)[source]

Given a positive integer ‘bound’ it returns the largest integer n such that n! <= bound.

Parameters:

bound (int) – A positive integer.

Return type:

int

Returns:

The largest integer n such that n! <= bound.