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

Going ahead to step 1:
31 can be fit into 4 0 times, resulting in a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Include the next digit (2) from the dividend after 4, then repeat: 42 / 31

Step 2:
31 goes into 42 1 times with a remainder of 11.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 31 from 42 to get 11.
Include the next digit (7) from the dividend after 11, then repeat: 117 / 31

Step 3:
If we divide 117 by 31, we get 3 and a remainder of 24.
Record the quotient 3 as the next digit in the result. 
Result so far: 13.0
If we take 93 away from 117, we end up with 24.
Fetch the next digit (8) from the dividend, attach it to 24 and continue: 248 / 31

Let's proceed to step 4:
31 can be fit into 248 8 times, resulting in a remainder of 0.
Write down 8 as next digit of the result. 
Result so far: 138.0
Subtracting 248 from 248 leaves us with 0.
Bring next digit (2) of the dividend behind the 0 and repeat the process: 2 / 31

Let's proceed to step 5:
The number 31 fits into 2 0 times, leaving a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 1380.0
If we subtract 0 from 2, we get 2.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 31

Going ahead to step 6:
31 goes into 27 0 times with a remainder of 27.
The number 0 becomes the next digit in our result. 
Result so far: 13800.0
Subtract 0 from 27 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.

Advancing to step 7:
The number 31 fits into 270 8 times, leaving a remainder of 22.
The next digit of our result is 8. 
Result so far: 13800.8
Subtract 248 from 270 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 8:
The number 31 fits into 220 7 times, leaving a remainder of 3.
The next digit of our result is 7. 
Result so far: 13800.87
Deduct 217 from 220 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 9:
30 divided by 31 is 0 with a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 13800.87
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 10:
If we divide 300 by 31, we get 9 and a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 13800.8709
If we subtract 279 from 300, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 11:
31 can be fit into 210 6 times, resulting in a remainder of 24.
The next digit of our result is 6. 
Result so far: 13800.87096
Deduct 186 from 210 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 12:
31 can be fit into 240 7 times, resulting in a remainder of 23.
The next digit of our result is 7. 
Result so far: 13800.870967
The remainder is 23 after subtracting 217 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 13:
31 goes into 230 7 times with a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 13800.8709677
If we take 217 away from 230, we end up with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final result is 13800.8709677 with a remainder of 1.3e-07.