160042 ÷ 31 
Let's see how many times 31 fits into 160042.

Moving on to step 1:
When dividing 1 by 31, we get 0 with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 31

Step 2:
31 goes into 16 0 times with a remainder of 16.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 16, we end up with 16.
Append the next digit (0) from the dividend to 16 and continue with: 160 / 31

Going ahead to step 3:
160 divided by 31 is 5 with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 5.0
Subtracting 155 from 160 leaves us with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 31

On to step 4:
If we divide 50 by 31, we get 1 and a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 51.0
Subtract 31 from 50 to get 19.
Append the next digit (4) from the dividend to 19 and continue with: 194 / 31

Advancing to step 5:
31 goes into 194 6 times with a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 516.0
The remainder is 8 after subtracting 186 from 194.
Fetch the next digit (2) from the dividend, attach it to 8 and continue: 82 / 31

Step 6:
When dividing 82 by 31, we get 2 with a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 5162.0
If we subtract 62 from 82, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 7:
The number 31 fits into 200 6 times, leaving a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 5162.6
If we subtract 186 from 200, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 8:
When dividing 140 by 31, we get 4 with a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 5162.64
If we take 124 away from 140, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

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

Step 10:
31 can be fit into 50 1 times, resulting in a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 5162.6451
Deduct 31 from 50 and we're left with 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 11:
The number 31 fits into 190 6 times, leaving a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 5162.64516
Subtracting 186 from 190 leaves us 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.

Going ahead to step 12:
If we divide 40 by 31, we get 1 and a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 5162.645161
Subtract 31 from 40 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 13:
If we divide 90 by 31, we get 2 and a remainder of 28.
The next digit of our result is 2. 
Result so far: 5162.6451612
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.

Advancing to step 14:
280 divided by 31 is 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 5162.64516129
Subtract 279 from 280 to 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.

The final result is 5162.64516129 with a remainder of 1e-09.