added functions for examining the pattern - looks like every other is 0, then 1, then 2, then ...