Compute the minimum digits needed to represent N states in a chosen radix (e.g. 256 states need 2 hex digits).
例如 256 種狀態在 16 進位制下需 2 位。