We look at the division of 220666 by 31 
The aim is to understand the frequency of 31 in 220666.

Advancing to step 1:
31 goes into 2 0 times with a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 2 and we're left with 2.
Append the next digit (2) from the dividend to 2 and continue with: 22 / 31

Going ahead to step 2:
The number 31 fits into 22 0 times, leaving a remainder of 22.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 22 and we're left with 22.
Fetch the next digit (0) from the dividend, attach it to 22 and continue: 220 / 31

Going ahead to step 3:
The number 31 fits into 220 7 times, leaving a remainder of 3.
The next digit of our result is 7. 
Result so far: 7.0
Subtract 217 from 220 to get 3.
Grab the next digit (6) from the dividend, add it to 3, then carry on: 36 / 31

Going ahead to step 4:
The number 31 fits into 36 1 times, leaving a remainder of 5.
Write down 1 as next digit of the result. 
Result so far: 71.0
If we subtract 31 from 36, we get 5.
Fetch the next digit (6) from the dividend, attach it to 5 and continue: 56 / 31

Moving on to step 5:
The number 31 fits into 56 1 times, leaving a remainder of 25.
Put 1 as the next digit of the answer. 
Result so far: 711.0
Subtracting 31 from 56 leaves us with 25.
Fetch the next digit (6) from the dividend, attach it to 25 and continue: 256 / 31

Step 6:
The number 31 fits into 256 8 times, leaving a remainder of 8.
Write down 8 as next digit of the result. 
Result so far: 7118.0
Subtracting 248 from 256 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.

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

Step 8:
31 can be fit into 180 5 times, resulting in a remainder of 25.
Use 5 as the next digit of our solution. 
Result so far: 7118.25
The remainder is 25 after subtracting 155 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 9:
31 can be fit into 250 8 times, resulting in a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 7118.258
If we take 248 away from 250, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 10:
If we divide 20 by 31, we get 0 and a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 7118.258
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.

On to step 11:
31 can be fit into 200 6 times, resulting in a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 7118.25806
Deduct 186 from 200 and we're left 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.

Let's proceed to step 12:
The number 31 fits into 140 4 times, leaving a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 7118.258064
If we take 124 away from 140, we end up 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.

Moving on to step 13:
31 can be fit into 160 5 times, resulting in a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 7118.2580645
If we take 155 away from 160, we end up 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.

Moving on to step 14:
When dividing 50 by 31, we get 1 with a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 7118.25806451
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

The final outcome is 7118.25806451, with a leftover of 1.9e-08.