more lightweight representation of sequences (no record, just a function)
test of fast iteration over integers