389040 divided by 31 
We're looking to find how many times 31 goes into 389040.

Step 1:
31 can be fit into 3 0 times, resulting in 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.
Bring next digit (8) of the dividend behind the 3 and repeat the process: 38 / 31

Going ahead to step 2:
When dividing 38 by 31, we get 1 with a remainder of 7.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 31 from 38 and we're left with 7.
Take the next digit (9) from the dividend and append it to 7, then repeat: 79 / 31

Advancing to step 3:
31 can be fit into 79 2 times, resulting in a remainder of 17.
Use 2 as the next digit of our solution. 
Result so far: 12.0
Subtracting 62 from 79 leaves us with 17.
Bring next digit (0) of the dividend behind the 17 and repeat the process: 170 / 31

Step 4:
170 divided by 31 is 5 with a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 125.0
The remainder is 15 after subtracting 155 from 170.
Take the next digit (4) from the dividend and append it to 15, then repeat: 154 / 31

On to step 5:
The number 31 fits into 154 4 times, leaving a remainder of 30.
The next digit of our result is 4. 
Result so far: 1254.0
Deduct 124 from 154 and we're left with 30.
Grab the next digit (0) from the dividend, add it to 30, then carry on: 300 / 31

Advancing to step 6:
31 can be fit into 300 9 times, resulting in a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 12549.0
If we subtract 279 from 300, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 7:
210 divided by 31 is 6 with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 12549.6
If we subtract 186 from 210, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 8:
240 divided by 31 is 7 with a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 12549.67
The remainder is 23 after subtracting 217 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

On to step 9:
230 divided by 31 is 7 with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 12549.677
Deduct 217 from 230 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Our division results in 12549.677 with a remaining 0.0013.