Let's divide 248951 by 31
The aim is to understand the frequency of 31 in 248951.

Going ahead to step 1:
If we divide 2 by 31, we get 0 and a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 2 to get 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.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 24, we get 24.
Bring next digit (8) of the dividend behind the 24 and repeat the process: 248 / 31

Step 3:
31 goes into 248 8 times with a remainder of 0.
Put 8 as the next digit of the answer. 
Result so far: 8.0
Subtract 248 from 248 to get 0.
Take the next digit (9) from the dividend and append it to 0, then repeat: 9 / 31

On to step 4:
The number 31 fits into 9 0 times, leaving a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 80.0
Subtracting 0 from 9 leaves us with 9.
Fetch the next digit (5) from the dividend, attach it to 9 and continue: 95 / 31

Moving on to step 5:
95 divided by 31 is 3 with a remainder of 2.
Write down 3 as next digit of the result. 
Result so far: 803.0
The remainder is 2 after subtracting 93 from 95.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 31

Let's proceed to step 6:
31 can be fit into 21 0 times, resulting in a remainder of 21.
The next digit of our result is 0. 
Result so far: 8030.0
The remainder is 21 after subtracting 0 from 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 7:
If we divide 210 by 31, we get 6 and a remainder of 24.
The next digit of our result is 6. 
Result so far: 8030.6
Subtract 186 from 210 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 8:
If we divide 240 by 31, we get 7 and a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 8030.67
Subtracting 217 from 240 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 9:
31 goes into 230 7 times with a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 8030.677
Subtract 217 from 230 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

After the division, we end up with 8030.677 and a remainder of 0.0013.