I could probably figure this out if it wasn't almost 5:30 in the morning. But, an example:
given 123,456,789; the set would be {123,456,789}
Any idea how I could do this mathematically? In practice, I could do this by making a string of 123456789 and substringing it, but I'd rather avoid that.