Get % number

I maybe didn’t explain it right :
I mean when I have numbers from 1 to 23
I want to get them with {modulo %} + one or more
In this exaple when module% is 6 it will be:
0 and 1, 6 and 7, 12 and 13, 18 and 19 and so for