use std::iota to generate sequence of integers