There are proofs and bounds for specific x.
https://oeis.org/A257213
But a general formula doesn't seem to be feasible. If you examine the first few values, you can see that it jumps around quite a bit. This is due to how the number line and division interacts, which is to say, very weirdly and interestingly.
I don't want to speak for anyone here, but this is well beyond me.
Anyway, here are the first 200, grouped by 10s
2, 3, 2, 3, 3, 4, 4, 3, 5, 4,
4, 5, 5, 5, 4, 6, 6, 5, 5, 7,
6, 6, 6, 5, 7, 7, 7, 6, 6, 8,
8, 7, 7, 7, 6, 8, 8, 8, 8, 7,
7, 9, 9, 9, 8, 8, 8, 7, 10, 9,
9, 9, 9, 8, 8, 10, 10, 10, 10, 9,
9, 9, 8, 11, 11, 10, 10, 10, 10, 9,
9, 11, 11, 11, 11, 11, 10, 10, 10, 9,
12, 12, 12, 11, 11, 11, 11, 10, 10, 13,
12, 12, 12, 12, 12, 11, 11, 11, 10, 13,
13, 13, 13, 12, 12, 12, 12, 11, 11, 14,
14, 13, 13, 13, 13, 13, 12, 12, 12, 11,
14, 14, 14, 14, 14, 13, 13, 13, 13, 12,
12, 15, 15, 15, 14, 14, 14, 14, 14, 13,
13, 13, 12, 15, 15, 15, 15, 15, 15, 14,
14, 14, 14, 13, 13, 16, 16, 16, 16, 15,
15, 15, 15, 15, 14, 14, 14, 13, 17, 16,
16, 16, 16, 16, 16, 15, 15, 15, 15, 14,
14, 17, 17, 17, 17, 17, 16, 16, 16, 16,
16, 15, 15, 15, 14, 18, 18, 17, 17, 17