There is an interesting theorem (alas not much known) attributed to Popoviciu, which tells
that the number of solutions $ p_{\left\{ {a,b} \right\}} (n)$ in the first quadrant of the diophantine line $ax+by=n$ is
$$
\eqalign{
& p_{\left\{ {a,b} \right\}} (n) = \left| {\,\left\{ \matrix{
0 \le x,y,a,b,n \in \mathbb Z \hfill \cr
\gcd (a,b) = 1 \hfill \cr
ax + by = n \hfill \cr} \right.\;} \right| = \cr
& = {n \over {ab}} - \left\{ {{{b^{\,\left( { - 1} \right)} n} \over a}} \right\}
- \left\{ {{{a^{\,\left( { - 1} \right)} n} \over b}} \right\} + 1 \cr}
$$
where
$$
\eqalign{
& \left\{ x \right\} = x - \left\lfloor x \right\rfloor \cr
& b^{\,\left( { - 1} \right)} b \equiv 1\;\left( {\bmod a} \right)
\quad a^{\,\left( { - 1} \right)} a \equiv 1\;\left( {\bmod b} \right) \cr}
$$
In our case this gives
$$
\eqalign{
& 13^{\,\left( { - 1} \right)} 13 \equiv 1\;\left( {\bmod 8} \right)
\quad \Rightarrow \quad 13^{\,\left( { - 1} \right)} = 5 \cr
& 8^{\,\left( { - 1} \right)} 8 \equiv 1\;\left( {\bmod 13} \right)
\quad \Rightarrow \quad 8^{\,\left( { - 1} \right)} = 5 \cr}
$$
and therefore
$$
\eqalign{
& p_{\left\{ {8,13} \right\}} (n) = {n \over {8 \cdot 13}} - \left\{ {{{5n} \over 8}} \right\}
- \left\{ {{{5n} \over {13}}} \right\} + 1 = 9\quad \Rightarrow \cr
& \Rightarrow \quad n = 8^{\,2} \cdot 13 = 832 \cr}
$$
The line equation becomes
$$
8x + 13y = 8^{\,2} \cdot 13\quad \Rightarrow \quad {x \over {13}} + {y \over 8} = 8
$$
with the nine solutions being
$$
\left( {0,64} \right),\left( {13,56} \right), \cdots ,\left( {104,0} \right)
$$
If you want to consider only positive integral solutions $1 \le x,y \in \mathbb Z$ then it is just a matter
to make a shift
$$
\eqalign{
& ax + by = n\quad \Rightarrow \cr
& \Rightarrow \quad a\left( {\left( {x + 1} \right) - 1} \right) + b\left( {\left( {y + 1} \right) - 1} \right)
= n\quad \Rightarrow \cr
& \Rightarrow \quad a\left( {x + 1} \right) + b\left( {y + 1} \right) = n + a + b = m \cr}
$$
so that the new minimum $n$ becomes $853$.