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

Advancing to step 1:
When dividing 1 by 31, we get 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 31

On to step 2:
31 can be fit into 18 0 times, resulting in a remainder of 18.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 18, we end up with 18.
Include the next digit (7) from the dividend after 18, then repeat: 187 / 31

Going ahead to step 3:
If we divide 187 by 31, we get 6 and a remainder of 1.
Put 6 as the next digit of the answer. 
Result so far: 6.0
Deduct 186 from 187 and we're left with 1.
Grab the next digit (7) from the dividend, add it to 1, then carry on: 17 / 31

Let's proceed to step 4:
The number 31 fits into 17 0 times, leaving a remainder of 17.
The number 0 becomes the next digit in our result. 
Result so far: 60.0
Subtracting 0 from 17 leaves us with 17.
Bring next digit (2) of the dividend behind the 17 and repeat the process: 172 / 31

Let's proceed to step 5:
31 goes into 172 5 times with a remainder of 17.
Write down 5 as next digit of the result. 
Result so far: 605.0
Deduct 155 from 172 and we're left with 17.
Bring next digit (7) of the dividend behind the 17 and repeat the process: 177 / 31

On to step 6:
31 goes into 177 5 times with a remainder of 22.
Use 5 as the next digit of our solution. 
Result so far: 6055.0
If we take 155 away from 177, we end up with 22.
Include the next digit (0) from the dividend after 22, then repeat: 220 / 31

Let's proceed to step 7:
31 goes into 220 7 times with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 60557.0
Deduct 217 from 220 and we're left with 3.
Append the next digit (7) from the dividend to 3 and continue with: 37 / 31

Let's proceed to step 8:
31 can be fit into 37 1 times, resulting in a remainder of 6.
The next digit of our result is 1. 
Result so far: 605571.0
If we subtract 31 from 37, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 9:
When dividing 60 by 31, we get 1 with a remainder of 29.
The next digit of our result is 1. 
Result so far: 605571.1
Subtract 31 from 60 to 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.

On to step 10:
31 goes into 290 9 times with a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 605571.19
The remainder is 11 after subtracting 279 from 290.
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:
If we divide 110 by 31, we get 3 and a remainder of 17.
Put 3 as the next digit of the answer. 
Result so far: 605571.193
If we subtract 93 from 110, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 12:
When dividing 170 by 31, we get 5 with a remainder of 15.
The next digit of our result is 5. 
Result so far: 605571.1935
If we take 155 away from 170, we end up 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.

Moving on to step 13:
31 goes into 150 4 times with a remainder of 26.
Put 4 as the next digit of the answer. 
Result so far: 605571.19354
Deduct 124 from 150 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 14:
When dividing 260 by 31, we get 8 with a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 605571.193548
Deduct 248 from 260 and we're left 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.

Let's proceed to step 15:
If we divide 120 by 31, we get 3 and a remainder of 27.
Use 3 as the next digit of our solution. 
Result so far: 605571.1935483
Subtracting 93 from 120 leaves us with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 16:
If we divide 270 by 31, we get 8 and a remainder of 22.
The number 8 becomes the next digit in our result. 
Result so far: 605571.19354838
If we take 248 away from 270, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

After the division, we end up with 605571.19354838 and a remainder of 2.2e-08.