Number Sequence Pattern Calculator