states = minutesToTest / minutesToDie + 1
.x
such that states^x >= buckets
.x
: x >= log(buckets) / log(states)
.x
must be an integer, round up the result of the logarithmic calculation to the nearest whole number.x
as the minimum number of pigs needed.