We're dividing 31901864 by 786 
We want to divide 31901864 by 786.

Going ahead to step 1:
The number 786 fits into 3 0 times, leaving a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 786

Let's proceed to step 2:
The number 786 fits into 31 0 times, leaving a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 31, we get 31.
Append the next digit (9) from the dividend to 31 and continue with: 319 / 786

Let's proceed to step 3:
786 goes into 319 0 times with a remainder of 319.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 319, we end up with 319.
Fetch the next digit (0) from the dividend, attach it to 319 and continue: 3190 / 786

Moving on to step 4:
786 can be fit into 3190 4 times, resulting in a remainder of 46.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
If we take 3144 away from 3190, we end up with 46.
Take the next digit (1) from the dividend and append it to 46, then repeat: 461 / 786

Let's proceed to step 5:
If we divide 461 by 786, we get 0 and a remainder of 461.
The next digit of our result is 0. 
Result so far: 40.0
If we take 0 away from 461, we end up with 461.
Append the next digit (8) from the dividend to 461 and continue with: 4618 / 786

Advancing to step 6:
786 goes into 4618 5 times with a remainder of 688.
Use 5 as the next digit of our solution. 
Result so far: 405.0
The remainder is 688 after subtracting 3930 from 4618.
Fetch the next digit (6) from the dividend, attach it to 688 and continue: 6886 / 786

Moving on to step 7:
786 can be fit into 6886 8 times, resulting in a remainder of 598.
Use 8 as the next digit of our solution. 
Result so far: 4058.0
If we take 6288 away from 6886, we end up with 598.
Append the next digit (4) from the dividend to 598 and continue with: 5984 / 786

Step 8:
5984 divided by 786 is 7 with a remainder of 482.
Use 7 as the next digit of our solution. 
Result so far: 40587.0
The remainder is 482 after subtracting 5502 from 5984.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4820, and continue the process.

Moving on to step 9:
When dividing 4820 by 786, we get 6 with a remainder of 104.
Write down 6 as next digit of the result. 
Result so far: 40587.6
If we take 4716 away from 4820, we end up with 104.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1040, and continue the process.

On to step 10:
If we divide 1040 by 786, we get 1 and a remainder of 254.
Use 1 as the next digit of our solution. 
Result so far: 40587.61
If we subtract 786 from 1040, we get 254.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2540, and continue the process.

Let's proceed to step 11:
When dividing 2540 by 786, we get 3 with a remainder of 182.
Use 3 as the next digit of our solution. 
Result so far: 40587.613
Subtract 2358 from 2540 to get 182.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1820, and continue the process.

Advancing to step 12:
The number 786 fits into 1820 2 times, leaving a remainder of 248.
Record the quotient 2 as the next digit in the result. 
Result so far: 40587.6132
If we subtract 1572 from 1820, we get 248.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2480, and continue the process.

Advancing to step 13:
2480 divided by 786 is 3 with a remainder of 122.
The next digit of our result is 3. 
Result so far: 40587.61323
The remainder is 122 after subtracting 2358 from 2480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1220, and continue the process.

Moving on to step 14:
When dividing 1220 by 786, we get 1 with a remainder of 434.
Use 1 as the next digit of our solution. 
Result so far: 40587.613231
If we subtract 786 from 1220, we get 434.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4340, and continue the process.

Step 15:
If we divide 4340 by 786, we get 5 and a remainder of 410.
Write down 5 as next digit of the result. 
Result so far: 40587.6132315
The remainder is 410 after subtracting 3930 from 4340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4100, and continue the process.

On to step 16:
786 can be fit into 4100 5 times, resulting in a remainder of 170.
The number 5 becomes the next digit in our result. 
Result so far: 40587.61323155
If we subtract 3930 from 4100, we get 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1700, and continue the process.

The final result is 40587.61323155 with a remainder of 1.7e-07.