We're dividing 179838 by 31 
Our goal is to divide 179838 by 31.

Step 1:
31 can be fit into 1 0 times, resulting in a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Take the next digit (7) from the dividend and append it to 1, then repeat: 17 / 31

Step 2:
The number 31 fits into 17 0 times, leaving a remainder of 17.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 17, we get 17.
Append the next digit (9) from the dividend to 17 and continue with: 179 / 31

Step 3:
The number 31 fits into 179 5 times, leaving a remainder of 24.
Write down 5 as next digit of the result. 
Result so far: 5.0
If we subtract 155 from 179, we get 24.
Fetch the next digit (8) from the dividend, attach it to 24 and continue: 248 / 31

Moving on to step 4:
When dividing 248 by 31, we get 8 with a remainder of 0.
The number 8 becomes the next digit in our result. 
Result so far: 58.0
If we subtract 248 from 248, we get 0.
Fetch the next digit (3) from the dividend, attach it to 0 and continue: 3 / 31

Advancing to step 5:
If we divide 3 by 31, we get 0 and a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 580.0
If we take 0 away from 3, we end up with 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 31

On to step 6:
31 goes into 38 1 times with a remainder of 7.
Put 1 as the next digit of the answer. 
Result so far: 5801.0
Subtracting 31 from 38 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 7:
When dividing 70 by 31, we get 2 with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 5801.2
Subtracting 62 from 70 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 8:
If we divide 80 by 31, we get 2 and a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 5801.22
If we subtract 62 from 80, we 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 5801.22 with a remainder of 0.018.