390418 ÷ 31 
We want to divide 390418 by 31.

On to step 1:
If we divide 3 by 31, we get 0 and a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 31

Advancing to step 2:
31 goes into 39 1 times with a remainder of 8.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 31 from 39 and we're left with 8.
Append the next digit (0) from the dividend to 8 and continue with: 80 / 31

Advancing to step 3:
If we divide 80 by 31, we get 2 and a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
If we subtract 62 from 80, we get 18.
Bring next digit (4) of the dividend behind the 18 and repeat the process: 184 / 31

Going ahead to step 4:
184 divided by 31 is 5 with a remainder of 29.
The number 5 becomes the next digit in our result. 
Result so far: 125.0
If we subtract 155 from 184, we get 29.
Grab the next digit (1) from the dividend, add it to 29, then carry on: 291 / 31

Advancing to step 5:
The number 31 fits into 291 9 times, leaving a remainder of 12.
Use 9 as the next digit of our solution. 
Result so far: 1259.0
Subtract 279 from 291 to get 12.
Fetch the next digit (8) from the dividend, attach it to 12 and continue: 128 / 31

Moving on to step 6:
31 goes into 128 4 times with a remainder of 4.
Write down 4 as next digit of the result. 
Result so far: 12594.0
If we subtract 124 from 128, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 7:
40 divided by 31 is 1 with a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 12594.1
If we take 31 away from 40, we end up with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 8:
31 can be fit into 90 2 times, resulting in a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 12594.12
If we take 62 away from 90, 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.

Step 9:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 12594.129
If we take 279 away from 280, we end up 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.

Moving on to step 10:
31 goes into 10 0 times with a remainder of 10.
The next digit of our result is 0. 
Result so far: 12594.129
Deduct 0 from 10 and we're left 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.

Going ahead to step 11:
100 divided by 31 is 3 with a remainder of 7.
The next digit of our result is 3. 
Result so far: 12594.12903
If we take 93 away from 100, we end up 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.

Let's proceed to step 12:
70 divided by 31 is 2 with a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 12594.129032
Subtracting 62 from 70 leaves us 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.

On to step 13:
The number 31 fits into 80 2 times, leaving a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 12594.1290322
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 quotient of the division is 12594.1290322, and the remainder is 1.8e-07.