We're dividing 900042 by 31 
Let's see how many times 31 fits into 900042.

Advancing to step 1:
When dividing 9 by 31, we get 0 with a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Take the next digit (0) from the dividend and append it to 9, then repeat: 90 / 31

Step 2:
31 can be fit into 90 2 times, resulting in a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we subtract 62 from 90, we get 28.
Take the next digit (0) from the dividend and append it to 28, then repeat: 280 / 31

Advancing to step 3:
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: 29.0
Deduct 279 from 280 and we're left with 1.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 31

Going ahead to step 4:
10 divided by 31 is 0 with a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 290.0
Subtract 0 from 10 to get 10.
Append the next digit (4) from the dividend to 10 and continue with: 104 / 31

On to step 5:
31 can be fit into 104 3 times, resulting in a remainder of 11.
Record the quotient 3 as the next digit in the result. 
Result so far: 2903.0
The remainder is 11 after subtracting 93 from 104.
Grab the next digit (2) from the dividend, add it to 11, then carry on: 112 / 31

Step 6:
When dividing 112 by 31, we get 3 with a remainder of 19.
The number 3 becomes the next digit in our result. 
Result so far: 29033.0
If we subtract 93 from 112, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 7:
190 divided by 31 is 6 with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 29033.6
The remainder is 4 after subtracting 186 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 29033.61
The remainder is 9 after subtracting 31 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Advancing to step 9:
90 divided by 31 is 2 with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 29033.612
Deduct 62 from 90 and we're left 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.

Moving on to step 10:
The number 31 fits into 280 9 times, leaving a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 29033.6129
Deduct 279 from 280 and we're left 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.

Advancing to step 11:
If we divide 10 by 31, we get 0 and a remainder of 10.
The next digit of our result is 0. 
Result so far: 29033.6129
If we subtract 0 from 10, we 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.

Let's proceed to step 12:
If we divide 100 by 31, we get 3 and a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 29033.612903
If we subtract 93 from 100, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 13:
31 goes into 70 2 times with a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 29033.6129032
Subtract 62 from 70 to 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.

On to step 14:
31 goes into 80 2 times with a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 29033.61290322
Subtract 62 from 80 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The final result is 29033.61290322 with a remainder of 1.8e-08.