Combinatorics, automata and number theory (Cambridge Univ. Press, 2010)