Compute the minimum digits needed to represent N states in a chosen radix (e.g. 256 states need 2 hex digits).
例如 256 种状态在 16 进制下需 2 位。