Question 14A regular $n$-gon $A_1A_2A_3\ldots A_n$ is inscribed in a circle with centre $O$. If $\angle A_1OA_{16}=135^\circ$, what is the sum of all the possible values of $n$?