I would like to get a closed form of $A_n(x)$ if verifies the following recurrence relation
$$A_n(x)=\frac{d}{dx}\left(\frac{A_{n-1}(x)}{a-\cos x}\right)\,\,\,\text{and}\,\,\,A_0(x)=1.$$
Really I need to know the general term of $A_n(0)$.
Any ideas or suggestions are welcome.
This is not a complete solution.
Setting $n=\infty$, and the recurrence equation becomes $$A_{\infty}(x)=\frac{d}{dx}\left(\frac{A_{\infty}(x)}{a-\cos x}\right)$$
The solution to it is:
$$A_{\infty}(x) = C(a - \cos x)\exp(a x - \sin x) $$ where $C$ is a constant of integration.