turns a number into a “ladder” of numbers in ascending order