(Note: I've posted my own answer, slightly redefining trirationals to be composed of reals instead of integers and addressing the problems pointed out here. Please take note of this while reading my original question.)
Definition: By trirational number, I mean a number that can represent a ratio of three integers (e.g. $2:3:5$) in the same way rational numbers represent a ratio of two integers. I will express trirational numbers in this form: $a\unicode{x25B6}b\unicode{x25B6}c$.
Let $t$ be a trirational number that represents the triple integer ratio $a:b:c$. We'll define a trirational number to be
$$t=a\unicode{x25B6}b\unicode{x25B6}c\overset{\text{def}}{=}a*b^{\omega}*c^{\omega^2}$$
where $\omega$ and $\omega^2$ are the two primitive third roots of unity. This is analogous to how a rational number representing the ratio $a:b$ can be expressed as $a*b^{-1}$ where $-1$ is of course the primitive second root of unity. Since $\omega$ and $\omega^2$ have non-zero imaginary parts, $t$ is not confined to the real number line.
In order for $t$ to be a proper representation of $a:b:c$, it must represent the fact that $a:b:c=xa:xb:xc$ for any integer $x$. This is satisfied given that $1+\omega+\omega^2=0$, and therefore
$$(xa)\unicode{x25B6}(xb)\unicode{x25B6}(xc)=(xa)*(xb)^{\omega}*(xc)^{\omega^2}=x^{1+\omega+\omega^2}t=t$$
The ternary operation used to generate trirational numbers is analogous to division in certain ways:
- $x\unicode{x25B6}x\unicode{x25B6}x=1$
- $x\unicode{x25B6}1\unicode{x25B6}1=x$
- $0\unicode{x25B6}x\unicode{x25B6}y=0$
- $x\unicode{x25B6}0\unicode{x25B6}y$ and $x\unicode{x25B6}y\unicode{x25B6}0$ are both undefined.
- Just as $(x/y)^{-1}=y/x$, we have $(x\unicode{x25B6}y\unicode{x25B6}z)^{\omega}=z\unicode{x25B6}x\unicode{x25B6}y$, $\\(x\unicode{x25B6}y\unicode{x25B6}z)^{\omega^2}=y\unicode{x25B6}z\unicode{x25B6}x$, and $\\(x\unicode{x25B6}y\unicode{x25B6}z)^{-1}=~(x\unicode{x25B6}y\unicode{x25B6}z)^{\omega+\omega^2}=zy\unicode{x25B6}xz\unicode{x25B6}yx$
Other properties:
- $x\unicode{x25B6}y\unicode{x25B6}y=x/y$, meaning all rational numbers are trirational numbers. Take note that both $x\unicode{x25B6}y\unicode{x25B6}1\neq x/y$ and $x\unicode{x25B6}1\unicode{x25B6}y\neq x/y$ unless $y=1$.
- $y\unicode{x25B6}x\unicode{x25B6}y=(x/y)^{\omega}$, meaning two rational numbers $\frac{a}{c}$ and $\frac{b}{c}$ can be combined into a trirational number $a\unicode{x25B6}b\unicode{x25B6}c$ via $\frac{a}{c}*(\frac{b}{c})^{\omega}=(a\unicode{x25B6}c\unicode{x25B6}c)*(c\unicode{x25B6}b\unicode{x25B6}c)=a\unicode{x25B6}b\unicode{x25B6}c$
- $y\unicode{x25B6}y\unicode{x25B6}x=(x/y)^{\omega^2}$, meaning two rational numbers $\frac{a}{b}$ and $\frac{c}{b}$ can be combined into a trirational number $a\unicode{x25B6}b\unicode{x25B6}c$ via $\frac{a}{b}*(\frac{c}{b})^{\omega^2}=(a\unicode{x25B6}b\unicode{x25B6}b)*(b\unicode{x25B6}b\unicode{x25B6}c)=a\unicode{x25B6}b\unicode{x25B6}c$
Problems with generalization:
At first it seemed likely to me that a generalized $n$-rational number representing a ratio of $n$ integers $a_1:a_2:a_3:...:a_n$ would be of the form $$a_1*a_2^{\omega_1}*a_3^{\omega_2}*...*a_n^{\omega_{n-1}}$$
where ${\omega_1}$ up to ${\omega_{n-1}}$, along with $1$, are the $n$th roots of unity. But problems arise even for $n=4$.
The fourth roots of unity in the complex plane are $1$, $i$, $-1$, and $-i$, which give us this candidate form for 4-rational numbers:
$$a*b^i*c^{-1}*d^{-i}=\frac{a}{c}*(\frac{b}{d})^i$$
This might seem promising because $1+i-1-i=0$, but it still fails as a representation of ratios of four integers. For example, $2:5:4:10$ in the above form would simplify to $\frac{1}{2}*(\frac{1}{2})^i$ even though $1:1:2:2$ is not an equivalent ratio. Even worse, something like $2:7:2:7$ in this form ends up as $1$!
It looks like we'll need to look in higher dimensions for a solution.
Updates:
As per @Stinking Bishop's advice I'll just quickly define trirational multiplication:
$$(a_1\unicode{x25B6}b_1\unicode{x25B6}c_1)*(a_2\unicode{x25B6}b_2\unicode{x25B6}c_2)\overset{\text{def}}{=}a_1a_2\unicode{x25B6}b_1b_2\unicode{x25B6}c_1c_2$$
Unfortunately, I still don't have a general definition of trirational addition. I actually can't find anything online about adding ratios of three numbers. I even tried looking into projective spaces as @Qiaochu Yuan's suggested, but it seems addition is also a problem there.
So in most cases, I need to convert the trirational addends to complex numbers before I could add them. These are the only (trivial) exceptions:
$$(a_1\unicode{x25B6}b\unicode{x25B6}c)+(a_2\unicode{x25B6}b\unicode{x25B6}c)\overset{\text{def}}{=}(a_1+a_2)\unicode{x25B6}b\unicode{x25B6}c$$ $$(a_1\unicode{x25B6}b_1\unicode{x25B6}b_1)+(a_2\unicode{x25B6}b_2\unicode{x25B6}b_2)\overset{\text{def}}{=}(a_1b_2+a_2b_1)\unicode{x25B6}b_1b_2\unicode{x25B6}b_1b_2$$
Aside from those, I usually don't even know how to convert the complex sum in the general case back to trirational form!
As for generalizing trirational numbers (i.e. $n$-rational numbers), I now see that it's impossible to do for $n>3$ in the complex plane using roots of unity due to simplification problems:
For any $n$th root of unity, if $n$ is even then you get $n$th root pairs that are negatives of each other, so terms could cancel out: $a^{\omega_0}*a^{-\omega_0}=1$. This is fine for $n=2$ (the rational numbers), but for $n>2$ it could break the number's representation of ratios of $n$ numbers, as we saw above with the fourth roots of unity.
If $n$ is odd then you get $n$th root pairs that are conjugates of each other so they devolve into real numbers: $a^{\omega_1}*a^{\overline {\omega_1}}=a^{2*\operatorname {Re} (\omega_1)}$. This is okay for $n=3$ (the trirationals) but for $n>3$ it could once again break the representation. A representation of say a ratio of five numbers like $a:b:c:c:b$ that evaluates to a real number is not a very good representation, and is not what a 5-rational number should be.
Later I will try to find a solution for 4-rational and 5-rational numbers outside of the complex plane.
Questions:
While division can be interpreted as a scaling down of a number (when the divisor is a scalar $d>1$) or a rotation in the opposite direction (when the divisor has a non-zero imaginary part), is there also a geometric interpretation that could help visualize the ternary $\unicode{x25B6}\unicode{x25B6}$ operation?
Aside from the trivial case of rational numbers (where $a/b=a\unicode{x25B6}b\unicode{x25B6}b$), are there trirational numbers that, when you're given their polar or rectangular form, you can derive or even estimate the trirational form $a\unicode{x25B6}b\unicode{x25B6}c$ via a simple algorithm?
Does anyone have other ideas for trirational number addition? Perhaps there's another clue I'm missing? In real life we can combine two collections of the same three kinds of things in different ratios, so my intuition tells me a general trirational addition formula should exist.