390516 ÷ 31 
We're looking to find how many times 31 goes into 390516.

Step 1:
If we divide 3 by 31, we get 0 and a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 31

Moving on to step 2:
The number 31 fits into 39 1 times, leaving a remainder of 8.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 31 from 39 to get 8.
Grab the next digit (0) from the dividend, add it to 8, then carry on: 80 / 31

Moving on to step 3:
When dividing 80 by 31, we get 2 with a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
The remainder is 18 after subtracting 62 from 80.
Grab the next digit (5) from the dividend, add it to 18, then carry on: 185 / 31

Step 4:
The number 31 fits into 185 5 times, leaving a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 125.0
The remainder is 30 after subtracting 155 from 185.
Fetch the next digit (1) from the dividend, attach it to 30 and continue: 301 / 31

On to step 5:
When dividing 301 by 31, we get 9 with a remainder of 22.
Use 9 as the next digit of our solution. 
Result so far: 1259.0
If we subtract 279 from 301, we get 22.
Grab the next digit (6) from the dividend, add it to 22, then carry on: 226 / 31

Let's proceed to step 6:
When dividing 226 by 31, we get 7 with a remainder of 9.
Record the quotient 7 as the next digit in the result. 
Result so far: 12597.0
The remainder is 9 after subtracting 217 from 226.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 7:
31 goes into 90 2 times with a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 12597.2
Subtract 62 from 90 to get 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 8:
31 goes into 280 9 times with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 12597.29
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 9:
31 goes into 10 0 times with a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 12597.29
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.

Let's proceed to step 10:
When dividing 100 by 31, we get 3 with a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 12597.2903
The remainder is 7 after subtracting 93 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 11:
When dividing 70 by 31, we get 2 with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 12597.29032
Deduct 62 from 70 and we're left 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 12:
If we divide 80 by 31, we get 2 and a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 12597.290322
Deduct 62 from 80 and we're left 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.

After the division, we end up with 12597.290322 and a remainder of 1.8e-06.