A number $n$ is divisible by $9$ if and only if the sum of the digits of $n$ is also divisible by $9$
(if and only if the sum of the digits of the sum of the digits of $n$ is also divisible by $9$) (if and only if the sum of the digits of the sum of the digits of the sum of the digits...)
E.g. $18324$ has sum of digits $1+8+3+2+4=18$ which is divisible by $9$ so $18324$ is also divisible by $9$.
As we desire $n(a)$ to be divisible by $9$, this will occur if and only if the sum of the digits is divisible by $9$.
$\iff$ $3+1+7+2+a+6+3+7+5\equiv 0\pmod{9}$
$\iff 34+a\equiv 0\pmod{9}$
$\iff a\equiv -34\pmod{9}$
$\iff a\equiv 2\pmod{9}$
As $2$ is the only digit which is equivalent to $2\pmod{9}$ it must be that $a=2$
Note: The final line is necessary as some other cases may yield multiple answers. If the number was instead $31\color{red}{9}2a6375$ we could have had $a=0$ or $a=9$
In a much more informal proof, one could "case out nines" very quickly. The $3$ and the $6$ will cancel, the $2$ and the $7$ will cancel. The $1,3,5$ together cancel, leaving you with two digits still needing to properly cancel one another: a $7$ and the $a$. The only digit which cancels the $7$ will be a $2$. This can be done in your head within a few seconds given proper mental arithmetic.