Convert input sets of numbers into numerical sequences