Arithmetic properties of automata: regular sequences.