Can the function $(-1)^n$, $n=1,2,...$ be extended to an analytic function $f(z)$ defined on the right half complex plane satisfying the growth condition $$|f(x+iy)|\le C e^{Px+A|y|},$$ with $A<\pi$ and $C,P\in\mathbb{R}$?
I know that such an extension would be unique by Carlson's theorem and I showed that the obvious "power function" extension from complex analysis does not work for any choice of branch. I'm not sure where to go from here.