Periodicity And Decidability Automata