We look at the division of 393876 by 31 
We're looking to find how many times 31 goes into 393876.

Advancing to step 1:
When dividing 3 by 31, we get 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 31

Going ahead to step 2:
31 goes into 39 1 times with a remainder of 8.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 31 from 39 to get 8.
Take the next digit (3) from the dividend and append it to 8, then repeat: 83 / 31

Moving on to step 3:
If we divide 83 by 31, we get 2 and a remainder of 21.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
If we subtract 62 from 83, we get 21.
Take the next digit (8) from the dividend and append it to 21, then repeat: 218 / 31

Advancing to step 4:
When dividing 218 by 31, we get 7 with a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 127.0
The remainder is 1 after subtracting 217 from 218.
Grab the next digit (7) from the dividend, add it to 1, then carry on: 17 / 31

On to step 5:
The number 31 fits into 17 0 times, leaving a remainder of 17.
Put 0 as the next digit of the answer. 
Result so far: 1270.0
The remainder is 17 after subtracting 0 from 17.
Include the next digit (6) from the dividend after 17, then repeat: 176 / 31

Advancing to step 6:
176 divided by 31 is 5 with a remainder of 21.
Use 5 as the next digit of our solution. 
Result so far: 12705.0
Deduct 155 from 176 and we're left with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 7:
210 divided by 31 is 6 with a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 12705.6
Subtracting 186 from 210 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 8:
If we divide 240 by 31, we get 7 and a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 12705.67
Subtracting 217 from 240 leaves us with 23.
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 9:
230 divided by 31 is 7 with a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 12705.677
Deduct 217 from 230 and we're left 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.

The final outcome is 12705.677, with a leftover of 0.0013.