The function $$ f(z)=\sum_{n=0}^{\infty} \frac{z^n}{2^n-1} $$ defines a holomorphic function for $|z|<2$, and it satisfies $$ f(2z) = f(z)+\frac{1}{1-z} $$ for $|z|<1$. Based on this identity, it is easy to prove that $f(z)$ extends to a meromorphic function on $\mathbb{C}$, and the set of poles is $\{2^n:\ n=1,2,\dots\}$. In particular, $f(z)$ does not define a rational function, because its meromorphic extension to $\mathbb{C}$ has infinitely many poles. Regarding your second question, I recommend the work of Dwork (with which I am not familiar), e.g. (8) in [Alain Robert's article "Des adèles: pourquoi"][1], and Lemma 9 in [Tao's blog][2]. [1]: http://retro.seals.ch/cntmng?type=pdf&rid=ensmat-001:1974:20::62&subp=hires [2]: https://terrytao.wordpress.com/2014/05/13/dworks-proof-of-rationality-of-the-zeta-function-over-finite-fields/