I want to find a general way to calculate the smallest possible radius ($R$) of two congruent $n$-disks ($n$-balls) with the centers ($C_1$) and ($C_2$) lying on the diagonal of the hyper-rectangle and fully covering him. The positions of both centers are fixed and divides the main diagonal into three equal parts. Examples of such covering for $n = 2$ and $n = 3$ cases (for simplicity I'm using there $n$-cube, but it could be any hyper-rectangle) are shown in the pictures below.
At the moment, it looks, that it would be possible to find all the distances between all rectangle vertices $ V(Rect) = \{ v_i: i=1,\dots,2^n \} $ and these two center points $C_1$ and $C_2$ and then to take: $$ R = \max_{v_i \in V(Rect)} \left\{ \min \left\{ \left\| v_i - C_1 \right\|, \left\| v_i - C_2 \right\| \right\} \right\}, $$ However, as the number of vertices $2^n$ increase rapidly when $n$ goes up, I would like to derive a simpler way to find $R$. For example, considering only hyper-rectangle side lengths in each dimension.
Let's put one vertex of the hyper-rectangle in $O$, the opposite side will be $V_{far}=(s_1, s_2,..., s_n)$, where $s_i$ is the length of the side in the $i_{th}$ dimension.
Let's call $q$ the index where $s_q=\max\left\{s_i\right\}$. $$ R = \sqrt{{1 \over 9}s_q^2+{4 \over 9}\sum_{i=1, i\ne q}^ns_i^2} $$
EDIT. How I derived this expression.
First of all let's assume $q=n$, this will obviously have no implication on the final result.
Cut the hypercube on the plane perpendicular to the diagonal. You will have that the points farther from $O$ are the ones that lie on the other side of the plane and, for all of them, the $n_{th}$ coordinate is not $0$. These points will be nearer to $C_2$.
Now we must find an hypersphere containing all the points with the $n_{th}$ coordinate $=0$. This is easy, as we have the center $C_1\equiv V_{far}/3$ and the farther point (on our side of the cut) is $P\equiv (s_1, s_2,..., s_{n-1},0)$.
So with pythagorean theorem the result is easily obtained.
Take in consideration that this is the minimum radius given the position of $C_1$. If you are allowed to move this point you can find smaller radii.