We look at the division of 319931 by 7 
The aim is to understand the frequency of 7 in 319931.

Let's proceed to step 1:
If we divide 3 by 7, we get 0 and a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 7

On to step 2:
If we divide 31 by 7, we get 4 and a remainder of 3.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
Subtract 28 from 31 to get 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 7

Moving on to step 3:
If we divide 39 by 7, we get 5 and a remainder of 4.
Use 5 as the next digit of our solution. 
Result so far: 45.0
If we take 35 away from 39, we end up with 4.
Bring next digit (9) of the dividend behind the 4 and repeat the process: 49 / 7

Advancing to step 4:
7 can be fit into 49 7 times, resulting in a remainder of 0.
The number 7 becomes the next digit in our result. 
Result so far: 457.0
Subtract 49 from 49 to get 0.
Fetch the next digit (3) from the dividend, attach it to 0 and continue: 3 / 7

Moving on to step 5:
When dividing 3 by 7, we get 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 4570.0
If we take 0 away from 3, we end up with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 7

Let's proceed to step 6:
7 goes into 31 4 times with a remainder of 3.
Put 4 as the next digit of the answer. 
Result so far: 45704.0
Deduct 28 from 31 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.

Going ahead to step 7:
If we divide 30 by 7, we get 4 and a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 45704.4
If we subtract 28 from 30, we 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.

On to step 8:
7 goes into 20 2 times with a remainder of 6.
The next digit of our result is 2. 
Result so far: 45704.42
Subtract 14 from 20 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 9:
60 divided by 7 is 8 with a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 45704.428
Deduct 56 from 60 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 10:
40 divided by 7 is 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 45704.4285
Subtracting 35 from 40 leaves us 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.

Advancing to step 11:
7 goes into 50 7 times with a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 45704.42857
Subtracting 49 from 50 leaves us 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.

Step 12:
10 divided by 7 is 1 with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 45704.428571
Deduct 7 from 10 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.

On to step 13:
30 divided by 7 is 4 with a remainder of 2.
The next digit of our result is 4. 
Result so far: 45704.4285714
Subtracting 28 from 30 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 14:
7 goes into 20 2 times with a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 45704.42857142
Deduct 14 from 20 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

The final result is 45704.42857142 with a remainder of 6e-09.