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

Going ahead to step 1:
31 can be fit into 7 0 times, resulting in a remainder of 7.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 7 and we're left with 7.
Bring next digit (6) of the dividend behind the 7 and repeat the process: 76 / 31

Let's proceed to step 2:
31 can be fit into 76 2 times, resulting in a remainder of 14.
The next digit of our result is 2. 
Result so far: 2.0
Subtract 62 from 76 to get 14.
Bring next digit (4) of the dividend behind the 14 and repeat the process: 144 / 31

Step 3:
If we divide 144 by 31, we get 4 and a remainder of 20.
Write down 4 as next digit of the result. 
Result so far: 24.0
If we subtract 124 from 144, we get 20.
Include the next digit (2) from the dividend after 20, then repeat: 202 / 31

Moving on to step 4:
When dividing 202 by 31, we get 6 with a remainder of 16.
The next digit of our result is 6. 
Result so far: 246.0
Deduct 186 from 202 and we're left with 16.
Bring next digit (1) of the dividend behind the 16 and repeat the process: 161 / 31

Advancing to step 5:
The number 31 fits into 161 5 times, leaving a remainder of 6.
Write down 5 as next digit of the result. 
Result so far: 2465.0
Subtract 155 from 161 to get 6.
Fetch the next digit (7) from the dividend, attach it to 6 and continue: 67 / 31

Step 6:
When dividing 67 by 31, we get 2 with a remainder of 5.
Write down 2 as next digit of the result. 
Result so far: 24652.0
If we subtract 62 from 67, we get 5.
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 7:
31 can be fit into 50 1 times, resulting in a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 24652.1
Subtracting 31 from 50 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 8:
The number 31 fits into 190 6 times, leaving a remainder of 4.
The next digit of our result is 6. 
Result so far: 24652.16
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 9:
40 divided by 31 is 1 with a remainder of 9.
The next digit of our result is 1. 
Result so far: 24652.161
Subtract 31 from 40 to get 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 10:
90 divided by 31 is 2 with a remainder of 28.
The next digit of our result is 2. 
Result so far: 24652.1612
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 11:
The number 31 fits into 280 9 times, leaving a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 24652.16129
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.

Let's proceed to step 12:
10 divided by 31 is 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 24652.16129
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.

On to step 13:
The number 31 fits into 100 3 times, leaving a remainder of 7.
The next digit of our result is 3. 
Result so far: 24652.1612903
Deduct 93 from 100 and we're left 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.

On to step 14:
31 goes into 70 2 times with a remainder of 8.
The next digit of our result is 2. 
Result so far: 24652.16129032
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.

After the division, we end up with 24652.16129032 and a remainder of 8e-09.