Suppose we are given pairs $(a_i,b_i)$ of positive numbers and $x \geq 1$. The goal is find the optimal subset of indices $I$ that maximizes:
$$\frac{(\sum_{i \in I} a_i)^x}{\sum_{i \in I} b_i}$$
This is a combinatorial optimization so I'm hoping to find an algorithm that runs really fast, e.g. $O(n)$ or $O(n \log n)$ time for $n$ pairs.