3887342 divided by 31 
Let's see how many times 31 fits into 3887342.

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
If we subtract 0 from 3, we get 3.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 31

Step 2:
31 goes into 38 1 times with a remainder of 7.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 31 away from 38, we end up with 7.
Bring next digit (8) of the dividend behind the 7 and repeat the process: 78 / 31

On to step 3:
The number 31 fits into 78 2 times, leaving a remainder of 16.
The next digit of our result is 2. 
Result so far: 12.0
Deduct 62 from 78 and we're left with 16.
Append the next digit (7) from the dividend to 16 and continue with: 167 / 31

Moving on to step 4:
When dividing 167 by 31, we get 5 with a remainder of 12.
The number 5 becomes the next digit in our result. 
Result so far: 125.0
The remainder is 12 after subtracting 155 from 167.
Include the next digit (3) from the dividend after 12, then repeat: 123 / 31

Moving on to step 5:
When dividing 123 by 31, we get 3 with a remainder of 30.
Use 3 as the next digit of our solution. 
Result so far: 1253.0
The remainder is 30 after subtracting 93 from 123.
Fetch the next digit (4) from the dividend, attach it to 30 and continue: 304 / 31

Let's proceed to step 6:
The number 31 fits into 304 9 times, leaving a remainder of 25.
The next digit of our result is 9. 
Result so far: 12539.0
Deduct 279 from 304 and we're left with 25.
Fetch the next digit (2) from the dividend, attach it to 25 and continue: 252 / 31

Advancing to step 7:
If we divide 252 by 31, we get 8 and a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 125398.0
Deduct 248 from 252 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 8:
If we divide 40 by 31, we get 1 and a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 125398.1
Subtracting 31 from 40 leaves us 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 9:
When dividing 90 by 31, we get 2 with a remainder of 28.
Put 2 as the next digit of the answer. 
Result so far: 125398.12
If we subtract 62 from 90, we 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.

Advancing to step 10:
280 divided by 31 is 9 with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 125398.129
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 11:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 125398.129
Subtract 0 from 10 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.

On to step 12:
31 goes into 100 3 times with a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 125398.12903
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.

Step 13:
70 divided by 31 is 2 with a remainder of 8.
The next digit of our result is 2. 
Result so far: 125398.129032
If we subtract 62 from 70, we get 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 14:
When dividing 80 by 31, we get 2 with a remainder of 18.
The next digit of our result is 2. 
Result so far: 125398.1290322
If we take 62 away from 80, we end up 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 125398.1290322 and a remainder of 1.8e-07.