Is there a way to create Sequential intervals from a whole number?

for instance:

Cell B1 contains 5
I would like Cell C1 to show 1,2,3,4,5 or 1-5

Thank you.