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

Moving on to step 1:
7 goes into 3 0 times with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 7

Going ahead to step 2:
When dividing 39 by 7, we get 5 with a remainder of 4.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
If we subtract 35 from 39, we get 4.
Fetch the next digit (6) from the dividend, attach it to 4 and continue: 46 / 7

Step 3:
7 goes into 46 6 times with a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 56.0
Subtracting 42 from 46 leaves us with 4.
Grab the next digit (7) from the dividend, add it to 4, then carry on: 47 / 7

Going ahead to step 4:
7 can be fit into 47 6 times, resulting in a remainder of 5.
The next digit of our result is 6. 
Result so far: 566.0
If we take 42 away from 47, we end up with 5.
Grab the next digit (6) from the dividend, add it to 5, then carry on: 56 / 7

Step 5:
The number 7 fits into 56 8 times, leaving a remainder of 0.
Record the quotient 8 as the next digit in the result. 
Result so far: 5668.0
The remainder is 0 after subtracting 56 from 56.
Bring next digit (3) of the dividend behind the 0 and repeat the process: 3 / 7

Let's proceed to step 6:
7 can be fit into 3 0 times, resulting in a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 56680.0
If we subtract 0 from 3, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 7:
When dividing 30 by 7, we get 4 with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 56680.4
Subtract 28 from 30 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.

Step 8:
When dividing 20 by 7, we get 2 with a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 56680.42
The remainder is 6 after subtracting 14 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 9:
7 can be fit into 60 8 times, resulting in a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 56680.428
The remainder is 4 after subtracting 56 from 60.
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 10:
7 can be fit into 40 5 times, resulting in a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 56680.4285
Subtract 35 from 40 to 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.

Step 11:
7 goes into 50 7 times with a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 56680.42857
If we subtract 49 from 50, 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.

Step 12:
When dividing 10 by 7, we get 1 with a remainder of 3.
The next digit of our result is 1. 
Result so far: 56680.428571
If we take 7 away from 10, we end up 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 13:
The number 7 fits into 30 4 times, leaving a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 56680.4285714
The remainder is 2 after subtracting 28 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 14:
The number 7 fits into 20 2 times, leaving a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 56680.42857142
Subtracting 14 from 20 leaves us 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.

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