The division algorithm states that given an integer x {\displaystyle x} and a positive integer y {\displaystyle y} , there are unique integers q {\displaystyle q} and r {\displaystyle r} , with 0 ≤ r < y {\displaystyle 0 \le r < y} , for which x = q y + r {\displaystyle x = q y + r} . For example, when a number is divided by 7, the remainder after division will be an integer between 0 and 6.