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

Step 1:
31 goes into 8 0 times with a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Fetch the next digit (8) from the dividend, attach it to 8 and continue: 88 / 31

Step 2:
31 can be fit into 88 2 times, resulting in a remainder of 26.
Write down 2 as next digit of the result. 
Result so far: 2.0
Deduct 62 from 88 and we're left with 26.
Grab the next digit (4) from the dividend, add it to 26, then carry on: 264 / 31

Let's proceed to step 3:
264 divided by 31 is 8 with a remainder of 16.
The number 8 becomes the next digit in our result. 
Result so far: 28.0
The remainder is 16 after subtracting 248 from 264.
Grab the next digit (4) from the dividend, add it to 16, then carry on: 164 / 31

Advancing to step 4:
31 can be fit into 164 5 times, resulting in a remainder of 9.
The next digit of our result is 5. 
Result so far: 285.0
If we subtract 155 from 164, we get 9.
Include the next digit (6) from the dividend after 9, then repeat: 96 / 31

Step 5:
31 can be fit into 96 3 times, resulting in a remainder of 3.
Put 3 as the next digit of the answer. 
Result so far: 2853.0
If we subtract 93 from 96, we get 3.
Bring next digit (7) of the dividend behind the 3 and repeat the process: 37 / 31

Let's proceed to step 6:
31 can be fit into 37 1 times, resulting in a remainder of 6.
The number 1 becomes the next digit in our result. 
Result so far: 28531.0
If we subtract 31 from 37, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 7:
The number 31 fits into 60 1 times, leaving a remainder of 29.
Use 1 as the next digit of our solution. 
Result so far: 28531.1
Subtracting 31 from 60 leaves us with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Going ahead to step 8:
31 can be fit into 290 9 times, resulting in a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 28531.19
If we take 279 away from 290, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 9:
31 goes into 110 3 times with a remainder of 17.
The number 3 becomes the next digit in our result. 
Result so far: 28531.193
If we subtract 93 from 110, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 10:
31 goes into 170 5 times with a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 28531.1935
Deduct 155 from 170 and we're left with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 11:
31 can be fit into 150 4 times, resulting in a remainder of 26.
The next digit of our result is 4. 
Result so far: 28531.19354
If we subtract 124 from 150, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 12:
When dividing 260 by 31, we get 8 with a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 28531.193548
Subtracting 248 from 260 leaves us 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.

Advancing to step 13:
120 divided by 31 is 3 with a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 28531.1935483
If we take 93 away from 120, we end up 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 14:
If we divide 270 by 31, we get 8 and a remainder of 22.
The number 8 becomes the next digit in our result. 
Result so far: 28531.19354838
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.

The final outcome is 28531.19354838, with a leftover of 2.2e-08.