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

Going ahead to step 1:
31 goes into 3 0 times with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 31

Advancing to step 2:
31 divided by 31 is 1 with a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 31 from 31 and we're left with 0.
Take the next digit (2) from the dividend and append it to 0, then repeat: 2 / 31

On to step 3:
If we divide 2 by 31, we get 0 and a remainder of 2.
The next digit of our result is 0. 
Result so far: 10.0
If we subtract 0 from 2, we get 2.
Grab the next digit (1) from the dividend, add it to 2, then carry on: 21 / 31

Advancing to step 4:
21 divided by 31 is 0 with a remainder of 21.
Use 0 as the next digit of our solution. 
Result so far: 100.0
If we take 0 away from 21, we end up with 21.
Append the next digit (6) from the dividend to 21 and continue with: 216 / 31

Going ahead to step 5:
The number 31 fits into 216 6 times, leaving a remainder of 30.
Write down 6 as next digit of the result. 
Result so far: 1006.0
If we take 186 away from 216, we end up with 30.
Include the next digit (2) from the dividend after 30, then repeat: 302 / 31

Moving on to step 6:
If we divide 302 by 31, we get 9 and a remainder of 23.
Write down 9 as next digit of the result. 
Result so far: 10069.0
The remainder is 23 after subtracting 279 from 302.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Let's proceed to step 7:
When dividing 230 by 31, we get 7 with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 10069.7
If we take 217 away from 230, we end up with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Step 8:
31 can be fit into 130 4 times, resulting in a remainder of 6.
Use 4 as the next digit of our solution. 
Result so far: 10069.74
The remainder is 6 after subtracting 124 from 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 9:
When dividing 60 by 31, we get 1 with a remainder of 29.
Write down 1 as next digit of the result. 
Result so far: 10069.741
If we subtract 31 from 60, we get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Going ahead to step 10:
When dividing 290 by 31, we get 9 with a remainder of 11.
Use 9 as the next digit of our solution. 
Result so far: 10069.7419
Subtracting 279 from 290 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 11:
When dividing 110 by 31, we get 3 with a remainder of 17.
The next digit of our result is 3. 
Result so far: 10069.74193
The remainder is 17 after subtracting 93 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 12:
31 can be fit into 170 5 times, resulting in a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 10069.741935
Subtracting 155 from 170 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Let's proceed to step 13:
If we divide 150 by 31, we get 4 and a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 10069.7419354
Subtract 124 from 150 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 14:
When dividing 260 by 31, we get 8 with a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 10069.74193548
If we take 248 away from 260, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Our division results in 10069.74193548 with a remaining 1.2e-08.