Recursively Generated Periodic Sequences