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

Going ahead to step 1:
If we divide 2 by 31, we get 0 and a remainder of 2.
The number 0 becomes the next digit in our 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

On to step 2:
When dividing 24 by 31, we get 0 with a remainder of 24.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 24 and we're left with 24.
Grab the next digit (8) from the dividend, add it to 24, then carry on: 248 / 31

Let's proceed to step 3:
The number 31 fits into 248 8 times, leaving a remainder of 0.
Use 8 as the next digit of our solution. 
Result so far: 8.0
The remainder is 0 after subtracting 248 from 248.
Append the next digit (2) from the dividend to 0 and continue with: 2 / 31

Going ahead to step 4:
31 goes into 2 0 times with a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 80.0
Deduct 0 from 2 and we're left with 2.
Include the next digit (3) from the dividend after 2, then repeat: 23 / 31

On to step 5:
31 can be fit into 23 0 times, resulting in a remainder of 23.
The next digit of our result is 0. 
Result so far: 800.0
If we take 0 away from 23, we end up with 23.
Include the next digit (7) from the dividend after 23, then repeat: 237 / 31

Let's proceed to step 6:
When dividing 237 by 31, we get 7 with a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 8007.0
If we subtract 217 from 237, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 7:
200 divided by 31 is 6 with a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 8007.6
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 8:
31 can be fit into 140 4 times, resulting in a remainder of 16.
Put 4 as the next digit of the answer. 
Result so far: 8007.64
If we take 124 away from 140, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 9:
31 can be fit into 160 5 times, resulting in a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 8007.645
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.

Going ahead to step 10:
The number 31 fits into 50 1 times, leaving a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 8007.6451
Subtract 31 from 50 to 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.

Advancing to step 11:
The number 31 fits into 190 6 times, leaving a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 8007.64516
If we subtract 186 from 190, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 12:
If we divide 40 by 31, we get 1 and a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 8007.645161
Subtracting 31 from 40 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 13:
31 goes into 90 2 times with a remainder of 28.
The next digit of our result is 2. 
Result so far: 8007.6451612
If we take 62 away from 90, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 14:
If we divide 280 by 31, we get 9 and a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 8007.64516129
If we take 279 away from 280, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Our division results in 8007.64516129 with a remaining 1e-09.