We look at the division of 167970 by 31 
Let's see how many times 31 fits into 167970.

Going ahead to step 1:
When dividing 1 by 31, we get 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 31

Advancing to 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 (7) from the dividend to 16 and continue with: 167 / 31

Step 3:
31 can be fit into 167 5 times, resulting in a remainder of 12.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Deduct 155 from 167 and we're left with 12.
Bring next digit (9) of the dividend behind the 12 and repeat the process: 129 / 31

On to step 4:
31 goes into 129 4 times with a remainder of 5.
Record the quotient 4 as the next digit in the result. 
Result so far: 54.0
If we subtract 124 from 129, we get 5.
Append the next digit (7) from the dividend to 5 and continue with: 57 / 31

Advancing to step 5:
31 can be fit into 57 1 times, resulting in a remainder of 26.
Use 1 as the next digit of our solution. 
Result so far: 541.0
Deduct 31 from 57 and we're left with 26.
Include the next digit (0) from the dividend after 26, then repeat: 260 / 31

Advancing to step 6:
When dividing 260 by 31, we get 8 with a remainder of 12.
Put 8 as the next digit of the answer. 
Result so far: 5418.0
Deduct 248 from 260 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 7:
31 goes into 120 3 times with a remainder of 27.
The next digit of our result is 3. 
Result so far: 5418.3
Deduct 93 from 120 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 8:
If we divide 270 by 31, we get 8 and a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 5418.38
If we take 248 away from 270, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 9:
The number 31 fits into 220 7 times, leaving a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 5418.387
Deduct 217 from 220 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 10:
If we divide 30 by 31, we get 0 and a remainder of 30.
Write down 0 as next digit of the result. 
Result so far: 5418.387
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 11:
The number 31 fits into 300 9 times, leaving a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 5418.38709
If we take 279 away from 300, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 12:
If we divide 210 by 31, we get 6 and a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 5418.387096
If we take 186 away from 210, we end up with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 13:
When dividing 240 by 31, we get 7 with a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 5418.3870967
Subtract 217 from 240 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 14:
When dividing 230 by 31, we get 7 with a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 5418.38709677
Deduct 217 from 230 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final outcome is 5418.38709677, with a leftover of 1.3e-08.