38390964 divided by 31 
We want to divide 38390964 by 31.

Step 1:
If we divide 3 by 31, we get 0 and a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 31

Advancing to step 2:
31 can be fit into 38 1 times, resulting in 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 (3) from the dividend and append it to 7, then repeat: 73 / 31

Step 3:
The number 31 fits into 73 2 times, leaving a remainder of 11.
Use 2 as the next digit of our solution. 
Result so far: 12.0
The remainder is 11 after subtracting 62 from 73.
Grab the next digit (9) from the dividend, add it to 11, then carry on: 119 / 31

Step 4:
If we divide 119 by 31, we get 3 and a remainder of 26.
The number 3 becomes the next digit in our result. 
Result so far: 123.0
Subtracting 93 from 119 leaves us with 26.
Fetch the next digit (0) from the dividend, attach it to 26 and continue: 260 / 31

On to step 5:
If we divide 260 by 31, we get 8 and a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 1238.0
If we take 248 away from 260, we end up with 12.
Append the next digit (9) from the dividend to 12 and continue with: 129 / 31

On to step 6:
The number 31 fits into 129 4 times, leaving a remainder of 5.
The next digit of our result is 4. 
Result so far: 12384.0
If we take 124 away from 129, we end up with 5.
Append the next digit (6) from the dividend to 5 and continue with: 56 / 31

Going ahead to step 7:
When dividing 56 by 31, we get 1 with a remainder of 25.
The next digit of our result is 1. 
Result so far: 123841.0
Subtracting 31 from 56 leaves us with 25.
Take the next digit (4) from the dividend and append it to 25, then repeat: 254 / 31

Moving on to step 8:
The number 31 fits into 254 8 times, leaving a remainder of 6.
The next digit of our result is 8. 
Result so far: 1238418.0
The remainder is 6 after subtracting 248 from 254.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 9:
If we divide 60 by 31, we get 1 and a remainder of 29.
Put 1 as the next digit of the answer. 
Result so far: 1238418.1
If we take 31 away from 60, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Advancing to step 10:
When dividing 290 by 31, we get 9 with a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 1238418.19
The remainder is 11 after subtracting 279 from 290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 11:
If we divide 110 by 31, we get 3 and a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 1238418.193
Subtracting 93 from 110 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 12:
31 can be fit into 170 5 times, resulting in a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 1238418.1935
The remainder is 15 after subtracting 155 from 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Advancing to step 13:
If we divide 150 by 31, we get 4 and a remainder of 26.
Record the quotient 4 as the next digit in the result. 
Result so far: 1238418.19354
The remainder is 26 after subtracting 124 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 14:
The number 31 fits into 260 8 times, leaving a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 1238418.193548
Subtract 248 from 260 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 15:
120 divided by 31 is 3 with a remainder of 27.
Use 3 as the next digit of our solution. 
Result so far: 1238418.1935483
The remainder is 27 after subtracting 93 from 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 16:
31 goes into 270 8 times with a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 1238418.19354838
Deduct 248 from 270 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

The final outcome is 1238418.19354838, with a leftover of 2.2e-08.