We're dividing 31393775 by 861 
Let's see how many times 861 fits into 31393775.

Going ahead to step 1:
The number 861 fits into 3 0 times, leaving a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 861

Advancing to step 2:
861 goes into 31 0 times with a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 31, we end up with 31.
Grab the next digit (3) from the dividend, add it to 31, then carry on: 313 / 861

Step 3:
The number 861 fits into 313 0 times, leaving a remainder of 313.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 313, we end up with 313.
Fetch the next digit (9) from the dividend, attach it to 313 and continue: 3139 / 861

Moving on to step 4:
3139 divided by 861 is 3 with a remainder of 556.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we take 2583 away from 3139, we end up with 556.
Include the next digit (3) from the dividend after 556, then repeat: 5563 / 861

On to step 5:
5563 divided by 861 is 6 with a remainder of 397.
Record the quotient 6 as the next digit in the result. 
Result so far: 36.0
Subtracting 5166 from 5563 leaves us with 397.
Take the next digit (7) from the dividend and append it to 397, then repeat: 3977 / 861

Step 6:
3977 divided by 861 is 4 with a remainder of 533.
Put 4 as the next digit of the answer. 
Result so far: 364.0
Deduct 3444 from 3977 and we're left with 533.
Append the next digit (7) from the dividend to 533 and continue with: 5337 / 861

Moving on to step 7:
5337 divided by 861 is 6 with a remainder of 171.
Record the quotient 6 as the next digit in the result. 
Result so far: 3646.0
Deduct 5166 from 5337 and we're left with 171.
Take the next digit (5) from the dividend and append it to 171, then repeat: 1715 / 861

Going ahead to step 8:
The number 861 fits into 1715 1 times, leaving a remainder of 854.
Write down 1 as next digit of the result. 
Result so far: 36461.0
Deduct 861 from 1715 and we're left with 854.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8540, and continue the process.

Going ahead to step 9:
The number 861 fits into 8540 9 times, leaving a remainder of 791.
Write down 9 as next digit of the result. 
Result so far: 36461.9
Deduct 7749 from 8540 and we're left with 791.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7910, and continue the process.

Step 10:
The number 861 fits into 7910 9 times, leaving a remainder of 161.
Use 9 as the next digit of our solution. 
Result so far: 36461.99
If we take 7749 away from 7910, we end up with 161.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1610, and continue the process.

The quotient of the division is 36461.99, and the remainder is 0.161.