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

Let's proceed to step 1:
4 divided by 31 is 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Include the next digit (5) from the dividend after 4, then repeat: 45 / 31

Going ahead to step 2:
45 divided by 31 is 1 with a remainder of 14.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 31 from 45 leaves us with 14.
Append the next digit (8) from the dividend to 14 and continue with: 148 / 31

Step 3:
If we divide 148 by 31, we get 4 and a remainder of 24.
Put 4 as the next digit of the answer. 
Result so far: 14.0
The remainder is 24 after subtracting 124 from 148.
Include the next digit (7) from the dividend after 24, then repeat: 247 / 31

Let's proceed to step 4:
31 can be fit into 247 7 times, resulting in a remainder of 30.
Write down 7 as next digit of the result. 
Result so far: 147.0
If we take 217 away from 247, we end up with 30.
Grab the next digit (4) from the dividend, add it to 30, then carry on: 304 / 31

On to step 5:
When dividing 304 by 31, we get 9 with a remainder of 25.
Put 9 as the next digit of the answer. 
Result so far: 1479.0
If we take 279 away from 304, we end up with 25.
Fetch the next digit (5) from the dividend, attach it to 25 and continue: 255 / 31

Step 6:
If we divide 255 by 31, we get 8 and a remainder of 7.
Record the quotient 8 as the next digit in the result. 
Result so far: 14798.0
If we take 248 away from 255, we end up 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.

Moving on to step 7:
31 can be fit into 70 2 times, resulting in a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 14798.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.

Moving on to step 8:
The number 31 fits into 80 2 times, leaving a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 14798.22
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.

Our division results in 14798.22 with a remaining 0.018.