I am attempting to prove that given a series of rational numbers $p/q$ as presented below: $$ 1/1,\; 2/1,\; 1/2,\; 3/1,\; 2/2,\; 1/3,\; 4/1,\; 3/2,\; 2/3,\; 1/4,\; \ldots $$
That $p/q$ is the $[(1/2)(p+q-1)(p+q-2)+q]$th term of the series.
I initially began attempting to construct the proof by induction, first setting $p=q=1$ and then $=q=n$ and so on, however, I was not able to get a solid answer.
Expanding the equation did not provide any helpful insights either.
I am wondering if anyone can provide any assistance?
Note that the sequence is ordered as follows: $\dfrac{a}b$ precedes $\dfrac{c}d$ in the sequence if and only if either
Thus, a fraction $p/q$ is preceded by all fractions $a/b$ such that $a+b<p+q$ and by all fractions $a/b$ such that $a+b=p+q$ and $b<q$.
There is one fraction $a/b$ such that $a+b=2$; there are two such that $a+b=3$; and in general there are $k-1$ fractions $a/b$ such that $a+b=k$. Thus, there are
$$\sum_{k=2}^{p+q-1}(k-1)=\sum_{i=1}^{p+q-2}i=\frac{(p+q-2)(p+q-1)}2\tag{1}$$
fractions $a/b$ such that $a+b<p+q$. There are also $q-1$ fractions $a/b$ such that $a+b=p+q$ and $b<q$, one for every value of $b$ from $1$ through $q-1$. Adding that to the subtotal $(1)$, we find that $p/q$ is preceded by
$$\frac{(p+q-2)(p+q-1)}2+(q-1)$$
terms and is therefore the
$$\left(\frac{(p+q-2)(p+q-1)}2+q\right)\text{-th}$$
term of the sequence, counting $1/1$ as the first term.