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

Going ahead to step 1:
If we divide 4 by 31, we get 0 and a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Fetch the next digit (2) from the dividend, attach it to 4 and continue: 42 / 31

Step 2:
When dividing 42 by 31, we get 1 with a remainder of 11.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 11 after subtracting 31 from 42.
Bring next digit (7) of the dividend behind the 11 and repeat the process: 117 / 31

Step 3:
If we divide 117 by 31, we get 3 and a remainder of 24.
Use 3 as the next digit of our solution. 
Result so far: 13.0
The remainder is 24 after subtracting 93 from 117.
Include the next digit (0) from the dividend after 24, then repeat: 240 / 31

Going ahead to step 4:
31 can be fit into 240 7 times, resulting in a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 137.0
Deduct 217 from 240 and we're left with 23.
Take the next digit (6) from the dividend and append it to 23, then repeat: 236 / 31

On to step 5:
The number 31 fits into 236 7 times, leaving a remainder of 19.
Put 7 as the next digit of the answer. 
Result so far: 1377.0
Subtract 217 from 236 to get 19.
Fetch the next digit (5) from the dividend, attach it to 19 and continue: 195 / 31

Moving on to step 6:
When dividing 195 by 31, we get 6 with a remainder of 9.
The number 6 becomes the next digit in our result. 
Result so far: 13776.0
The remainder is 9 after subtracting 186 from 195.
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 7:
31 can be fit into 90 2 times, resulting in a remainder of 28.
The next digit of our result is 2. 
Result so far: 13776.2
Deduct 62 from 90 and we're left 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 8:
31 goes into 280 9 times with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 13776.29
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 9:
When dividing 10 by 31, we get 0 with a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 13776.29
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 10:
The number 31 fits into 100 3 times, leaving a remainder of 7.
The next digit of our result is 3. 
Result so far: 13776.2903
Subtracting 93 from 100 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 11:
70 divided by 31 is 2 with a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 13776.29032
If we subtract 62 from 70, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 12:
31 can be fit into 80 2 times, resulting in a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 13776.290322
The remainder is 18 after subtracting 62 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

After the division, we end up with 13776.290322 and a remainder of 1.8e-06.