Generate Ond^k_N length and iterate sequences by fixing either (N,k)
and varying the other