Number Sequence Generator Program