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

On to step 1:
When dividing 4 by 31, we get 0 with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Bring next digit (8) of the dividend behind the 4 and repeat the process: 48 / 31

Moving on to step 2:
If we divide 48 by 31, we get 1 and a remainder of 17.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 31 from 48 and we're left with 17.
Bring next digit (9) of the dividend behind the 17 and repeat the process: 179 / 31

Let's proceed to step 3:
If we divide 179 by 31, we get 5 and a remainder of 24.
Put 5 as the next digit of the answer. 
Result so far: 15.0
The remainder is 24 after subtracting 155 from 179.
Fetch the next digit (5) from the dividend, attach it to 24 and continue: 245 / 31

On to step 4:
245 divided by 31 is 7 with a remainder of 28.
Write down 7 as next digit of the result. 
Result so far: 157.0
Deduct 217 from 245 and we're left with 28.
Fetch the next digit (5) from the dividend, attach it to 28 and continue: 285 / 31

Let's proceed to step 5:
31 can be fit into 285 9 times, resulting in a remainder of 6.
Write down 9 as next digit of the result. 
Result so far: 1579.0
The remainder is 6 after subtracting 279 from 285.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 6:
60 divided by 31 is 1 with a remainder of 29.
Use 1 as the next digit of our solution. 
Result so far: 1579.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.

On to step 7:
31 goes into 290 9 times with a remainder of 11.
The number 9 becomes the next digit in our result. 
Result so far: 1579.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.

Let's proceed to step 8:
When dividing 110 by 31, we get 3 with a remainder of 17.
The number 3 becomes the next digit in our result. 
Result so far: 1579.193
Deduct 93 from 110 and we're left with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 9:
The number 31 fits into 170 5 times, leaving a remainder of 15.
Use 5 as the next digit of our solution. 
Result so far: 1579.1935
If we take 155 away from 170, we end up 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.

Moving on to step 10:
If we divide 150 by 31, we get 4 and a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 1579.19354
The remainder is 26 after subtracting 124 from 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 11:
31 goes into 260 8 times with a remainder of 12.
The next digit of our result is 8. 
Result so far: 1579.193548
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 12:
If we divide 120 by 31, we get 3 and a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 1579.1935483
Subtract 93 from 120 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 13:
When dividing 270 by 31, we get 8 with a remainder of 22.
Use 8 as the next digit of our solution. 
Result so far: 1579.19354838
Subtracting 248 from 270 leaves us 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 result is 1579.19354838 with a remainder of 2.2e-08.