TITLE: What characterizes rational functions with nonnegative integer Taylor coefficients?
QUESTION [8 upvotes]: I believe that there is a statement along the following lines (I would, of course, love to be corrected): a formal power series is the Taylor expansion of a rational function if and only if the coefficients eventually satisfy a linear relationship.
Let's suppose that I understand what "satisfy a linear relationship" means, because it's not the part I actually want to ask about (although clarifications are very welcome!).  What I would like to know is what conditions on a rational function are equivalent to all the Taylor coefficients being nonnegative integers.  For example, I happen to know that $1/(1-kx) = \sum (kx)^n$, and so any sum or product of such functions works.  In particular, I can try playing around with partial-fraction decompositions to see if I can write a given rational function in this way.  But I have no idea if this is all of them.
Put another way, there is a map $\mathbb R(x) \to \mathbb R[x^{-1},x]]$ (rational functions to Laurent series).  I would like to understand the inverse image of $\mathbb N[x^{-1},x]]$.
(Oh, also, I have no idea how to tag this, and I think "general mathematics" is probably an inappropriate tag for MO.  So please re-tag as you see fit.)

REPLY [3 votes]: This paper (?) of Gessel might help you out, although it is mostly about combinatorics.  There are two natural ways to write down rational functions with non-negative integer coefficients in combinatorics, one coming from transfer matrices / finite automata and one coming from regular languages.  The two give the same class of rational functions, but there exist rational functions with non-negative integer coefficients which provably don't arise in this way, so the situation seems complicated.
Your question seems to indicate you're not familiar with this class of rational functions, so here are two equivalent definitions: it is, on the one hand, the class of all non-negative linear combinations of entries of matrices of the form $(\mathbf{I} - \mathbf{A})^{-1}$ where $\mathbf{A}$ is a square matrix with entries in $x \mathbb{N}[x]$, and on the other hand the minimal class of rational functions containing $1, x$, and closed under addition, multiplication, and the operation $f \mapsto \frac{1}{1 - xf}$.
Edit:  One reason there isn't likely to be a particularly nice classification is that one can start with any rational function with integer coefficients and add a polynomial and a term of the form $\frac{1}{1 - kx}$ for $k$ such that $\frac{1}{k}$ is smaller than the smallest pole.