Simulating an elementary cellular automaton