For positive integers , the floor function condition is equivalent to the displayed integer inequalities. Since , a witness satisfies . Finding the least with and checking the strict upper bound therefore decides membership by binary search. Scanning successive values with a persistent increasing witness index instead enumerates all values below a bound in linear time arithmetic-operation count. Exact integer comparison avoids floating-point errors near an integer boundary.
Articles by others on the same topic
There are currently no matching articles.