We look at the division of 31861 by 2 
Let's see how many times 2 fits into 31861.

Advancing to step 1:
3 divided by 2 is 1 with a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 2 from 3 and we're left with 1.
Append the next digit (1) from the dividend to 1 and continue with: 11 / 2

Going ahead to step 2:
The number 2 fits into 11 5 times, leaving a remainder of 1.
Write down 5 as next digit of the result. 
Result so far: 15.0
If we subtract 10 from 11, we get 1.
Append the next digit (8) from the dividend to 1 and continue with: 18 / 2

Moving on to step 3:
If we divide 18 by 2, we get 9 and a remainder of 0.
Record the quotient 9 as the next digit in the result. 
Result so far: 159.0
If we take 18 away from 18, we end up with 0.
Bring next digit (6) of the dividend behind the 0 and repeat the process: 6 / 2

Moving on to step 4:
When dividing 6 by 2, we get 3 with a remainder of 0.
The number 3 becomes the next digit in our result. 
Result so far: 1593.0
The remainder is 0 after subtracting 6 from 6.
Include the next digit (1) from the dividend after 0, then repeat: 1 / 2

Let's proceed to step 5:
2 goes into 1 0 times with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 15930.0
If we take 0 away from 1, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 6:
The number 2 fits into 10 5 times, leaving a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 15930.5
Deduct 10 from 10 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 7:
2 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 15930.5
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 8:
2 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 15930.5
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 15930.5 with a balance of 0.0.