We're dividing 643382 by 31 
The aim is to understand the frequency of 31 in 643382.

Let's proceed to step 1:
When dividing 6 by 31, we get 0 with a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 6 after subtracting 0 from 6.
Include the next digit (4) from the dividend after 6, then repeat: 64 / 31

Advancing to step 2:
The number 31 fits into 64 2 times, leaving a remainder of 2.
The next digit of our result is 2. 
Result so far: 2.0
If we subtract 62 from 64, we get 2.
Include the next digit (3) from the dividend after 2, then repeat: 23 / 31

Let's proceed to step 3:
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: 20.0
If we subtract 0 from 23, we get 23.
Include the next digit (3) from the dividend after 23, then repeat: 233 / 31

Moving on to step 4:
If we divide 233 by 31, we get 7 and a remainder of 16.
The next digit of our result is 7. 
Result so far: 207.0
Subtract 217 from 233 to get 16.
Grab the next digit (8) from the dividend, add it to 16, then carry on: 168 / 31

Advancing to step 5:
31 can be fit into 168 5 times, resulting in a remainder of 13.
Write down 5 as next digit of the result. 
Result so far: 2075.0
If we take 155 away from 168, we end up with 13.
Include the next digit (2) from the dividend after 13, then repeat: 132 / 31

Step 6:
31 goes into 132 4 times with a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 20754.0
Subtracting 124 from 132 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 7:
The number 31 fits into 80 2 times, leaving a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 20754.2
If we take 62 away from 80, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 8:
When dividing 180 by 31, we get 5 with a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 20754.25
Deduct 155 from 180 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 9:
31 can be fit into 250 8 times, resulting in a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 20754.258
Subtract 248 from 250 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 10:
20 divided by 31 is 0 with a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 20754.258
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 11:
31 goes into 200 6 times with a remainder of 14.
The next digit of our result is 6. 
Result so far: 20754.25806
Deduct 186 from 200 and we're left 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.

Let's proceed to step 12:
140 divided by 31 is 4 with a remainder of 16.
The next digit of our result is 4. 
Result so far: 20754.258064
Subtracting 124 from 140 leaves us 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.

Advancing to step 13:
The number 31 fits into 160 5 times, leaving a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 20754.2580645
If we take 155 away from 160, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 14:
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: 20754.25806451
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.

The final outcome is 20754.25806451, with a leftover of 1.9e-08.