Exhaustive guessing of the root of a number