Let's divide 861022 by 31
Let's see how many times 31 fits into 861022.

Step 1:
8 divided by 31 is 0 with a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Fetch the next digit (6) from the dividend, attach it to 8 and continue: 86 / 31

Advancing to step 2:
The number 31 fits into 86 2 times, leaving a remainder of 24.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we take 62 away from 86, we end up with 24.
Bring next digit (1) of the dividend behind the 24 and repeat the process: 241 / 31

Going ahead to step 3:
31 goes into 241 7 times with a remainder of 24.
Write down 7 as next digit of the result. 
Result so far: 27.0
Subtract 217 from 241 to get 24.
Grab the next digit (0) from the dividend, add it to 24, then carry on: 240 / 31

Advancing to step 4:
31 goes into 240 7 times with a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 277.0
Subtracting 217 from 240 leaves us with 23.
Include the next digit (2) from the dividend after 23, then repeat: 232 / 31

Going ahead to step 5:
If we divide 232 by 31, we get 7 and a remainder of 15.
The next digit of our result is 7. 
Result so far: 2777.0
If we take 217 away from 232, we end up with 15.
Include the next digit (2) from the dividend after 15, then repeat: 152 / 31

Advancing to step 6:
When dividing 152 by 31, we get 4 with a remainder of 28.
Write down 4 as next digit of the result. 
Result so far: 27774.0
If we take 124 away from 152, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 7:
31 goes into 280 9 times with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 27774.9
Subtracting 279 from 280 leaves us 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 8:
When dividing 10 by 31, we get 0 with a remainder of 10.
The next digit of our result is 0. 
Result so far: 27774.9
If we take 0 away from 10, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 9:
31 can be fit into 100 3 times, resulting in a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 27774.903
Subtracting 93 from 100 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 10:
If we divide 70 by 31, we get 2 and a remainder of 8.
The next digit of our result is 2. 
Result so far: 27774.9032
If we take 62 away from 70, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 11:
If we divide 80 by 31, we get 2 and a remainder of 18.
The next digit of our result is 2. 
Result so far: 27774.90322
Subtracting 62 from 80 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

In conclusion, the division gives 27774.90322 with a balance of 1.8e-05.