There are two possibilities to generate a sequence of numbers to be iterated in a for loop in Racket:
(for ([i (range 1 5)]) (display i)