We're dividing 162230 by 31 
The aim is to understand the frequency of 31 in 162230.

Advancing 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
Deduct 0 from 1 and we're left with 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 31

Going ahead to step 2:
When dividing 16 by 31, we get 0 with a remainder of 16.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 16, we get 16.
Include the next digit (2) from the dividend after 16, then repeat: 162 / 31

Let's proceed to step 3:
31 can be fit into 162 5 times, resulting in a remainder of 7.
Write down 5 as next digit of the result. 
Result so far: 5.0
The remainder is 7 after subtracting 155 from 162.
Take the next digit (2) from the dividend and append it to 7, then repeat: 72 / 31

Advancing to step 4:
When dividing 72 by 31, we get 2 with a remainder of 10.
The next digit of our result is 2. 
Result so far: 52.0
The remainder is 10 after subtracting 62 from 72.
Append the next digit (3) from the dividend to 10 and continue with: 103 / 31

Advancing to step 5:
31 goes into 103 3 times with a remainder of 10.
Use 3 as the next digit of our solution. 
Result so far: 523.0
If we subtract 93 from 103, we get 10.
Append the next digit (0) from the dividend to 10 and continue with: 100 / 31

Moving on to step 6:
31 goes into 100 3 times with a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 5233.0
Deduct 93 from 100 and we're left 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.

Let's proceed to step 7:
When dividing 70 by 31, we get 2 with a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 5233.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.

Let's proceed to step 8:
The number 31 fits into 80 2 times, leaving a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 5233.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 outcome is 5233.22, with a leftover of 0.018.