We're dividing 31958739 by 842 
We're looking to find how many times 842 goes into 31958739.

On to step 1:
When dividing 3 by 842, we get 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 842

Let's proceed to step 2:
The number 842 fits into 31 0 times, leaving a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 31 leaves us with 31.
Bring next digit (9) of the dividend behind the 31 and repeat the process: 319 / 842

Advancing to step 3:
When dividing 319 by 842, we get 0 with a remainder of 319.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 319 after subtracting 0 from 319.
Grab the next digit (5) from the dividend, add it to 319, then carry on: 3195 / 842

Moving on to step 4:
3195 divided by 842 is 3 with a remainder of 669.
Put 3 as the next digit of the answer. 
Result so far: 3.0
Subtracting 2526 from 3195 leaves us with 669.
Fetch the next digit (8) from the dividend, attach it to 669 and continue: 6698 / 842

Moving on to step 5:
When dividing 6698 by 842, we get 7 with a remainder of 804.
The number 7 becomes the next digit in our result. 
Result so far: 37.0
If we take 5894 away from 6698, we end up with 804.
Include the next digit (7) from the dividend after 804, then repeat: 8047 / 842

Advancing to step 6:
842 goes into 8047 9 times with a remainder of 469.
Record the quotient 9 as the next digit in the result. 
Result so far: 379.0
The remainder is 469 after subtracting 7578 from 8047.
Bring next digit (3) of the dividend behind the 469 and repeat the process: 4693 / 842

Moving on to step 7:
The number 842 fits into 4693 5 times, leaving a remainder of 483.
Use 5 as the next digit of our solution. 
Result so far: 3795.0
Subtracting 4210 from 4693 leaves us with 483.
Append the next digit (9) from the dividend to 483 and continue with: 4839 / 842

Moving on to step 8:
842 goes into 4839 5 times with a remainder of 629.
Put 5 as the next digit of the answer. 
Result so far: 37955.0
Subtract 4210 from 4839 to get 629.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6290, and continue the process.

Going ahead to step 9:
842 goes into 6290 7 times with a remainder of 396.
Write down 7 as next digit of the result. 
Result so far: 37955.7
Subtracting 5894 from 6290 leaves us with 396.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3960, and continue the process.

Moving on to step 10:
842 goes into 3960 4 times with a remainder of 592.
Record the quotient 4 as the next digit in the result. 
Result so far: 37955.74
Subtract 3368 from 3960 to get 592.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5920, and continue the process.

Step 11:
When dividing 5920 by 842, we get 7 with a remainder of 26.
Put 7 as the next digit of the answer. 
Result so far: 37955.747
The remainder is 26 after subtracting 5894 from 5920.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Moving on to step 12:
260 divided by 842 is 0 with a remainder of 260.
The number 0 becomes the next digit in our result. 
Result so far: 37955.747
If we take 0 away from 260, we end up with 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2600, and continue the process.

Advancing to step 13:
When dividing 2600 by 842, we get 3 with a remainder of 74.
Record the quotient 3 as the next digit in the result. 
Result so far: 37955.74703
Subtract 2526 from 2600 to get 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Let's proceed to step 14:
The number 842 fits into 740 0 times, leaving a remainder of 740.
Use 0 as the next digit of our solution. 
Result so far: 37955.74703
If we subtract 0 from 740, we get 740.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7400, and continue the process.

Step 15:
842 goes into 7400 8 times with a remainder of 664.
Put 8 as the next digit of the answer. 
Result so far: 37955.7470308
Subtract 6736 from 7400 to get 664.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6640, and continue the process.

Moving on to step 16:
The number 842 fits into 6640 7 times, leaving a remainder of 746.
Use 7 as the next digit of our solution. 
Result so far: 37955.74703087
If we take 5894 away from 6640, we end up with 746.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7460, and continue the process.

In conclusion, the division gives 37955.74703087 with a balance of 7.46e-07.