How can we calculate the series: $$ F(x)=\sum_{n=1}^{\infty}\frac{(-1)^n}{1-x^n} $$ I found that $$ F(x)=\sum_{n=1}^{\infty}(-1)^n\Big(\sum_{m=0}^{\infty}(x^n)^m\Big)=\sum_{m=0}^{\infty}\Big(1-\frac{1}{1+x^m}\Big). $$ Any suggestion?
EDIT: I once set if $\vert x\vert<1$, but the series doesn't converge at all. So In what occasion does the series converge?
For every $|x|\gt1$, the series converges since $|x^n-1|\geqslant\frac12|x|^n$ for every $n$ large enough, and $$F(x)=\sum_{n\geqslant1}\frac{(-1)^{n+1}}{x^n-1}=\sum_{n\geqslant1}(-1)^{n+1}x^{-n}\frac1{1-x^{-n}}=\sum_{n\geqslant1}(-1)^{n+1}x^{-n}\sum_{k\geqslant0}x^{-nk},$$ that is, $$F(x)=\sum_{n\geqslant1}\alpha_nx^{-n},\qquad\alpha_n=\sum_{d\mid n}(-1)^{d+1}.$$ Note that $$\alpha_n=\sum_{d\mid n}1-2\sum_{d\mid n,\ d\ \mathrm{even}}1=\sigma_0(n)-2\sigma_0^{(e)}(n)=\sigma_0(n)-2\sigma_0(n/2)\mathbf 1_{n\ \text{even}},$$ see here, where $\sigma_0(n)$ is the number of divisors of $n$. The generating function of the sequence $(\sigma_0(n))$ is known, hence all this yields, for every $|z|\lt1$, $z\ne0$, $$F(z^{-1})=\frac{\psi_z(1)+\log(1-z)}{\log z}-2\frac{\psi_{z^2}(1)+\log(1-z^2)}{\log(z^2)},$$ and, finally, $$F(z^{-1})=\frac{\psi_z(1)-\psi_{z^2}(1)-\log(1+z)}{\log z}.$$ As usual, this formula, based on the so-called q-polygamma function (see also (5)-(6)-(7) there), is, as given, a mere rewriting of the series one started with.