How to get even gradient repetition using modulo?
This is really simple. What you need is to, first, modulo the gradient texture by a value that is less than one and then divide by that same value:



The problem you're experiencing is due to the image's resolution. The only way to fix this is to render to a higher resolution image.

Here's the .blend: