The delay of the line with repeaters is given by

where the delay of a repeater is lb, the line has length I, and
each section has length
Is. The section length that minimizes delay is calculated by
differentiating with respect to Is and setting the result to zero.
This gives an optimal section length of

These equations are derived for an inverter pair and it still works as you asked.
Any changes if we insert inverter pairs instead of inverters to avoid polarity problem? N Segments...