How do I move a sequence through an array?

Thankyou. Could you please give me an example of how of use the modulo operator to get the pattern to wrap around.