We divide 381704 by 31
We want to divide 381704 by 31.

On to step 1:
The number 31 fits into 3 0 times, leaving a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 31

Going ahead to step 2:
31 can be fit into 38 1 times, resulting in a remainder of 7.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 31 from 38 to get 7.
Grab the next digit (1) from the dividend, add it to 7, then carry on: 71 / 31

Let's proceed to step 3:
When dividing 71 by 31, we get 2 with a remainder of 9.
The next digit of our result is 2. 
Result so far: 12.0
Deduct 62 from 71 and we're left with 9.
Bring next digit (7) of the dividend behind the 9 and repeat the process: 97 / 31

Let's proceed to step 4:
The number 31 fits into 97 3 times, leaving a remainder of 4.
Use 3 as the next digit of our solution. 
Result so far: 123.0
Subtracting 93 from 97 leaves us with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 31

Advancing to step 5:
When dividing 40 by 31, we get 1 with a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 1231.0
If we take 31 away from 40, we end up with 9.
Grab the next digit (4) from the dividend, add it to 9, then carry on: 94 / 31

Going ahead to step 6:
31 can be fit into 94 3 times, resulting in a remainder of 1.
Put 3 as the next digit of the answer. 
Result so far: 12313.0
Subtracting 93 from 94 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.

On to step 7:
10 divided by 31 is 0 with a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 12313.0
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 8:
If we divide 100 by 31, we get 3 and a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 12313.03
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.

Going ahead to step 9:
70 divided by 31 is 2 with a remainder of 8.
The next digit of our result is 2. 
Result so far: 12313.032
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.

Step 10:
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: 12313.0322
The remainder is 18 after subtracting 62 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

After the division, we end up with 12313.0322 and a remainder of 0.00018.