Rephrasing, let the $3$ horses be denoted by $h_1, h_2, h_3$. Let $x_i \in [0,1]$ be the fraction of one's budget bet on horse $h_i$. Note that $x_1 + x_2 + x_3 = 1$ and that the profit is
$$ \text{profit} = \begin{cases} 2 x_1 - 1 & \text{if } h_1 \text{ wins}\\ 4 x_2 - 1 & \text{if } h_2 \text{ wins}\\ 6 x_3 - 1 & \text{if } h_3 \text{ wins}\end{cases} $$
Since we want an arbitrage bet, the profit should be positive regardless of which horse wins. Thus,
$$x_1 > \frac12, \qquad x_2 > \frac14, \qquad x_3 > \frac16$$
Since $\frac12 + \frac14 + \frac16 = \frac{11}{12} < 1$, let us make
$$\begin{aligned} x_1 &= \left(\frac{12}{11}\right) \frac12 = \color{blue}{\frac{6}{11}}\\ x_2 &= \left(\frac{12}{11}\right) \frac14 = \color{blue}{\frac{3}{11}}\\ x_3 &= \left(\frac{12}{11}\right) \frac16 = \color{blue}{\frac{2}{11}}\end{aligned}$$
With this allocation, no matter which horse wins, the profit is always $\frac{1}{11}$.
Of course, there are other ways of allocating the remaining $\frac{1}{12}$. However, this particular allocation maximizes the worst-case scenario, which can be seen by introducing optimization variable $y$ and solving the following linear program.
$$\begin{array}{ll} \underset{x_1, x_2, x_3, y}{\text{maximize}} & y\\ \text{subject to} & x_1 + x_2 + x_3 = 1\\ & 2 x_1 - 1 \geq y\\ & 4 x_2 - 1 \geq y\\ & 6 x_3 - 1 \geq y\\ & x_1, x_2, x_3 \geq 0\end{array}$$
In CVXPY:
from cvxpy import *
x1 = Variable()
x2 = Variable()
x3 = Variable()
y = Variable()
objective = Maximize(y)
constraints = [ x1 + x2 + x3 == 1,
2*x1 - y >= 1,
4*x2 - y >= 1,
6*x3 - y >= 1,
x1 >= 0,
x2 >= 0,
x3 >= 0 ]
prob = Problem(objective, constraints)
prob.solve()
print("Status ", prob.status)
print("Maximum = ", prob.value )
print(" x1 = ", float(x1.value))
print(" x2 = ", float(x2.value))
print(" x3 = ", float(x3.value))
which outputs the following
Status optimal
Maximum = 0.09090909097169302
x1 = 0.5454545454546641
x2 = 0.27272727272899333
x3 = 0.18181818181634327
Addendum
Let us introduce binary variables $\theta_1, \theta_2, \theta_3 \in \{0,1\}$, where
$$ \theta_i = \begin{cases} 1 & \text{if } h_i \text{ wins}\\ 0 & \text{otherwise}\end{cases} $$
Since only one horse can win, $\theta_1 + \theta_2 + \theta_3 = 1$. Hence, the profit is
$$ \begin{aligned} \text{profit} &= (2 \theta_1 - 1) x_1 + (4 \theta_2 - 1) x_2 + (6 \theta_3 - 1) x_3 \\ &= 2 \theta_1 x_1 + 4 \theta_2 x_2 + 6 \theta_3 x_3 - ( \underbrace{x_1 + x_2 + x_3}_{=1} ) = \begin{cases} 2 x_1 - 1 & \text{if } h_1 \text{ wins}\\ 4 x_2 - 1 & \text{if } h_2 \text{ wins}\\ 6 x_3 - 1 & \text{if } h_3 \text{ wins}\end{cases} \end{aligned} $$
operations-research betting cvxpy