That makes sense. My bad. I think with coprime numbers it works as I intended.

https://en.wikipedia.org/wiki/Coprime_integers