Let $n, k \in \mathbb{N}$, with $k \le n$. Which $k$ natural numbers not greater than $n$ have the largest amount of divisors altogether?
Formally, let $D(x)$ be the set of positive divisors of some $x \in \mathbb{N}$. We want to find a subset $S \subseteq \{1, 2, \dots, n\}$ such that $|S| = k$ which maximizes $|\bigcup_{x \in S}{D(x)}|$. And what is the maximum cardinality achievable for $\bigcup_{x \in S}{D(x)}$?
The problem is straightforward for extremal values of $k$. For instance:
- if $k = 1$, an optimal solution is the set containing the largest highly composite number not greater than $n$.
- if $k = n$, then $\bigcup_{x \in S}{D(x)} = \{1, 2, \dots, n\}$.
What about for $1 < k < n$?
I would like to know how one should go about this type of construction. Can an exact solution be produced in general? Are there heuristics that (provably) approximate well such a solution? If not, is there any useful characterization of the cardinality of such a set using $\mathcal{O}(\cdot)$ notation?
Thank you!