TITLE: Is this function rational?
QUESTION [5 upvotes]: Let
$$
F=\sum_{i\ge0}\frac1{(T+2)^i}\left(\frac T{T+1}\right)^{3^i}\in\mathbb F_3\left(\!\!\left(\frac1T\right)\!\!\right).$$
Does $F$ belong to $\mathbb F_3(T)$?
Here, truncations of the series  do not give a good approximation of $F$.

REPLY [11 votes]: It is not rational.
First of all we denote $1/T=x$, then $$F=\sum_i \left(\frac{x}{1+2x}\right)^i(1+x)^{-3^i}\in \mathbb{F}_3((x)).$$
Now denote $x/(1+2x)=y$. Note that rationality in $x$ is equivalent to rationality in $y$ (and also that $\mathbb{F}_3((x))=\mathbb{F}_3((y))$). We have $x=y/(1-2y)$; $1+x=(1-y)/(1-2y)$; $$(1+x)^{-1}=\frac{1-2y}{1-y}=\frac{1+y}{1-y}=1-(y+y^2+y^3+\ldots).$$
Thus $$F=\sum_i y^i(1-y^{3^i}-y^{2\cdot 3^i}-\ldots)=\frac1{1-y}-\sum_{i\geqslant 0, k\geqslant 1}y^{i+k\cdot 3^i}.$$We should prove that the sequence of coefficients $a_n$ of the power series $$\sum_{i\geqslant 0, k\geqslant 1}y^{i+k\cdot 3^i}=\sum a_ny^n$$
is not eventually periodic modulo 3 (since rationality of a power series with coefficients in a finite field is equivalent to eventual periodicity of its coefficients).
We have $a_n=|A(n)|$, where $A(n)$ is the set of all non-negative integers $i<n$, for which $3^i$ divides $n-i$. It is straightforward that $A(k)=A(k+3^{k-1})$ for all $k>1$ and $A(k+3^{n-1})=A(k)\sqcup \{k\}$ for all $n>k>1$. This yields $a_{k+3^{k-1}}=a_k$ and $a_{k+3^{n-1}}=a_k+1$ for all $n>k>1$.
Now assume that, on the contrary, $a_{n+T}\equiv a_{n} \pmod 3$ for certain integer $T>0$ and all $n\geqslant n_0$. Consider the powers of 3 of the form $3^{m-1}$, $m>n_0$. By pigeonhole principle, there exist two of them which are congruent modulo $T$, say, $T$ divides $3^{n-1}-3^{k-1}$ for certain $n>k>n_0$. Then $T$ divides $(k+3^{n-1})-(k+3^{k-1})$ but from above we have $a_{k+3^{n-1}}=a_k+1=a_{k+3^{k-1}} +1$. This contradicts to our periodicity assumptions.