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

Moving on to step 1:
When dividing 2 by 31, we get 0 with a remainder of 2.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 2, we end up with 2.
Take the next digit (4) from the dividend and append it to 2, then repeat: 24 / 31

Moving on to step 2:
24 divided by 31 is 0 with a remainder of 24.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 24 to get 24.
Append the next digit (5) from the dividend to 24 and continue with: 245 / 31

On to step 3:
31 can be fit into 245 7 times, resulting in a remainder of 28.
Record the quotient 7 as the next digit in the result. 
Result so far: 7.0
If we subtract 217 from 245, we get 28.
Include the next digit (9) from the dividend after 28, then repeat: 289 / 31

Step 4:
289 divided by 31 is 9 with a remainder of 10.
The next digit of our result is 9. 
Result so far: 79.0
Deduct 279 from 289 and we're left with 10.
Bring next digit (4) of the dividend behind the 10 and repeat the process: 104 / 31

Advancing to step 5:
The number 31 fits into 104 3 times, leaving a remainder of 11.
The number 3 becomes the next digit in our result. 
Result so far: 793.0
The remainder is 11 after subtracting 93 from 104.
Take the next digit (8) from the dividend and append it to 11, then repeat: 118 / 31

Moving on to step 6:
31 goes into 118 3 times with a remainder of 25.
Write down 3 as next digit of the result. 
Result so far: 7933.0
If we take 93 away from 118, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 7:
31 goes into 250 8 times with a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 7933.8
The remainder is 2 after subtracting 248 from 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 8:
31 goes into 20 0 times with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 7933.8
If we take 0 away from 20, we end up 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.

Let's proceed to step 9:
The number 31 fits into 200 6 times, leaving a remainder of 14.
The next digit of our result is 6. 
Result so far: 7933.806
If we take 186 away from 200, we end up 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.

Moving on to step 10:
140 divided by 31 is 4 with a remainder of 16.
Put 4 as the next digit of the answer. 
Result so far: 7933.8064
If we subtract 124 from 140, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 11:
When dividing 160 by 31, we get 5 with a remainder of 5.
The next digit of our result is 5. 
Result so far: 7933.80645
The remainder is 5 after subtracting 155 from 160.
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 12:
When dividing 50 by 31, we get 1 with a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 7933.806451
If we subtract 31 from 50, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 13:
When dividing 190 by 31, we get 6 with a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 7933.8064516
The remainder is 4 after subtracting 186 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 14:
If we divide 40 by 31, we get 1 and a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 7933.80645161
The remainder is 9 after subtracting 31 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

The final result is 7933.80645161 with a remainder of 9e-09.