your table could contain the lighting sequence which you want to produce

example
00011001 - light 3 leds
00100101 - light another 3 leds
11100011 - another pattern

Do this and fill your table with whatever you want.

Jerson