Well, my pattern seems to work, but it kind of broke at 5. Will it break at all multiples of 5? Or is there something else?
Based on what I am seeing, it seems as though all times a multiple of 5 appears, then it has a remainder of 1.
Oh! Thanks for catching that error!