quick fix on bug where remainder was equal to the divisor, thus giving an odd output; i.e. 9/3= (2,3)