Let's divide 667316 by 31
We want to divide 667316 by 31.

Let's proceed to step 1:
31 can be fit into 6 0 times, resulting in a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 6, we get 6.
Bring next digit (6) of the dividend behind the 6 and repeat the process: 66 / 31

Going ahead to step 2:
When dividing 66 by 31, we get 2 with a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtract 62 from 66 to get 4.
Bring next digit (7) of the dividend behind the 4 and repeat the process: 47 / 31

Going ahead to step 3:
When dividing 47 by 31, we get 1 with a remainder of 16.
Put 1 as the next digit of the answer. 
Result so far: 21.0
Subtracting 31 from 47 leaves us with 16.
Append the next digit (3) from the dividend to 16 and continue with: 163 / 31

On to step 4:
The number 31 fits into 163 5 times, leaving a remainder of 8.
Record the quotient 5 as the next digit in the result. 
Result so far: 215.0
If we subtract 155 from 163, we get 8.
Bring next digit (1) of the dividend behind the 8 and repeat the process: 81 / 31

Step 5:
When dividing 81 by 31, we get 2 with a remainder of 19.
Write down 2 as next digit of the result. 
Result so far: 2152.0
Subtract 62 from 81 to get 19.
Take the next digit (6) from the dividend and append it to 19, then repeat: 196 / 31

Going ahead to step 6:
31 goes into 196 6 times with a remainder of 10.
The number 6 becomes the next digit in our result. 
Result so far: 21526.0
If we take 186 away from 196, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 7:
31 can be fit into 100 3 times, resulting in a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 21526.3
If we subtract 93 from 100, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 8:
The number 31 fits into 70 2 times, leaving a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 21526.32
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 9:
31 can be fit into 80 2 times, resulting in a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 21526.322
Subtracting 62 from 80 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

After the division, we end up with 21526.322 and a remainder of 0.0018.