Let's divide 938845 by 31
We're looking to find how many times 31 goes into 938845.

Let's proceed to step 1:
9 divided by 31 is 0 with a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 9, we get 9.
Bring next digit (3) of the dividend behind the 9 and repeat the process: 93 / 31

Advancing to step 2:
If we divide 93 by 31, we get 3 and a remainder of 0.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we subtract 93 from 93, we get 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 31

Let's proceed to step 3:
8 divided by 31 is 0 with a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 30.0
If we take 0 away from 8, we end up with 8.
Append the next digit (8) from the dividend to 8 and continue with: 88 / 31

Going ahead to step 4:
When dividing 88 by 31, we get 2 with a remainder of 26.
Record the quotient 2 as the next digit in the result. 
Result so far: 302.0
Deduct 62 from 88 and we're left with 26.
Bring next digit (4) of the dividend behind the 26 and repeat the process: 264 / 31

Let's proceed to step 5:
If we divide 264 by 31, we get 8 and a remainder of 16.
The number 8 becomes the next digit in our result. 
Result so far: 3028.0
Subtract 248 from 264 to get 16.
Append the next digit (5) from the dividend to 16 and continue with: 165 / 31

On to step 6:
The number 31 fits into 165 5 times, leaving a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 30285.0
Subtract 155 from 165 to 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.

Advancing to step 7:
If we divide 100 by 31, we get 3 and a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 30285.3
If we subtract 93 from 100, we get 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 8:
If we divide 70 by 31, we get 2 and a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 30285.32
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.

Let's proceed to step 9:
80 divided by 31 is 2 with a remainder of 18.
The next digit of our result is 2. 
Result so far: 30285.322
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.

The final outcome is 30285.322, with a leftover of 0.0018.