Define $f(z) = \frac{1}{\exp(\exp(z))} - \frac{1}{\exp(\exp(2z))} + \frac{1}{\exp(\exp(3z))} - \frac{1}{\exp(\exp(4z))} + ...$
$$f(z) = \sum_{n = 1}^{\infty} (-1)^{n-1} \exp(-\exp(n z))$$.
Is $f(z)$ analytic anywhere in the complex plane, such that $f(z)$ converges to its Taylor series? Are there values of $z$ where $f(z)$ doesn't converge? For real$(z)>0$, is the function real analytic, infinitely differentiable?
This question is inspired by the stack exchange post: Is $\frac{1}{\exp(z)} - \frac{1}{\exp(\exp(z))} + \frac{1}{\exp(\exp(\exp(z)))} -\ldots$ entire?, where I tried to modify the function so as to emphasize the behavior of exp(-exp(z)).
This is an answer to half the question, which is the case for real<0. For all real(z)<0, f(z) alternates between two different values, both of which are analytic. This is because $\exp(nz)=\exp(\Re(nz))\times\exp(\Im(nz))$, and $\Re(nz)$ gets exponentially close to zero as nz gets arbitrarily large negative. It doesn't matter what $\Im(z)$ is, because zero times anything is still zero. As $\exp(nz)$ approaches arbitrarily close to zero, $(-1)^n\exp(-\exp(nz))$ approaches arbitrarily close to one for n large and even, and it approaches arbitrarily close to negative one for n large and odd. One substitution one can make is $y=\exp(z)$
$f(y)=\sum_{n=1}^{\infty}(-1)^n\exp(-y^n)$
This can be expanded as a taylor series, for which the first few 20 terms are listed below. notice that here, f(y=0) alternates between 1 and 0 as n goes to even infinity and 0 as n goes to odd infinity. Alternatively, the terms $a_n$ terms for the taylor series of f(y) can be used as the coefficients for a $2\pi i$ periodic complex function $f(z)=\sum_{n=1}^{\infty}a_n\exp(nz)$. In "y", this function has a natural boundary of the unit circle. if |y|=1, and y^n doesn't repeat in an odd cycle, and does repeat in an even cycle. This condition is met if $\Re(z)=0$ and $\frac{\Im(z)}{2\pi}$ can be expressed as a rational number in simplest form, then if the denominator is even, there ia a singularity at z. Then f(y)=f(exp(z)) gets arbitrarily large since the (-1)^n terms are cyclic instead of cancelling. So singularities are dense on the boundary of the unit circle for $f(y)$, which corresponds to singularities being dense on the imaginary axis for the $2\pi i$ periodic version of f(z). These singularities are large for $\pi i$ and $\pi i/2$ but they get fairly tame quickly. Here are the first 20 terms of the Taylor series for f(y).
One could arbitrarily define f(z) as the average of the even and odd cases, which would make $f(z=-\infty)=1/2$. In that case, $f(0)=\frac{1}{2e}$. Here are my conjectures about the function for real(z)>0, some of which I will attempt to prove in a later post.
Plot of f(z) at the real axis:
Plot of f(z) at real(z)=-0.1, from imag(z)=0 to imag(z)=2Pi, showing the influence of nearby singularities, at $\pi i$, $\frac{\pi i}{2}$, $\frac{3\pi i}{2}$. Red is real and green is imaginary.