We divide 159342 by 31
Our goal is to divide 159342 by 31.

On to step 1:
31 goes into 1 0 times with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Append the next digit (5) from the dividend to 1 and continue with: 15 / 31

Let's proceed to step 2:
The number 31 fits into 15 0 times, leaving a remainder of 15.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 15 after subtracting 0 from 15.
Bring next digit (9) of the dividend behind the 15 and repeat the process: 159 / 31

Moving on to step 3:
When dividing 159 by 31, we get 5 with a remainder of 4.
The next digit of our result is 5. 
Result so far: 5.0
If we subtract 155 from 159, we get 4.
Fetch the next digit (3) from the dividend, attach it to 4 and continue: 43 / 31

Let's proceed to step 4:
43 divided by 31 is 1 with a remainder of 12.
Record the quotient 1 as the next digit in the result. 
Result so far: 51.0
Deduct 31 from 43 and we're left with 12.
Include the next digit (4) from the dividend after 12, then repeat: 124 / 31

Step 5:
31 can be fit into 124 4 times, resulting in a remainder of 0.
Record the quotient 4 as the next digit in the result. 
Result so far: 514.0
Deduct 124 from 124 and we're left with 0.
Fetch the next digit (2) from the dividend, attach it to 0 and continue: 2 / 31

Moving on to step 6:
The number 31 fits into 2 0 times, leaving a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 5140.0
Subtract 0 from 2 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
The number 31 fits into 20 0 times, leaving a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 5140.0
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 8:
31 goes into 200 6 times with a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 5140.06
If we take 186 away from 200, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 9:
If we divide 140 by 31, we get 4 and a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 5140.064
Deduct 124 from 140 and we're left 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.

Step 10:
The number 31 fits into 160 5 times, leaving a remainder of 5.
The next digit of our result is 5. 
Result so far: 5140.0645
Subtracting 155 from 160 leaves us 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.

On to step 11:
31 goes into 50 1 times with a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 5140.06451
Subtract 31 from 50 to 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.

Advancing to step 12:
When dividing 190 by 31, we get 6 with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 5140.064516
Deduct 186 from 190 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.

Let's proceed to step 13:
31 goes into 40 1 times with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 5140.0645161
If we subtract 31 from 40, we 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.

Let's proceed to step 14:
The number 31 fits into 90 2 times, leaving a remainder of 28.
The next digit of our result is 2. 
Result so far: 5140.06451612
Subtracting 62 from 90 leaves us 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.

The quotient of the division is 5140.06451612, and the remainder is 2.8e-08.