We're dividing 866347 by 7 
The aim is to understand the frequency of 7 in 866347.

On to step 1:
When dividing 8 by 7, we get 1 with a remainder of 1.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 7 from 8 leaves us with 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 7

Advancing to step 2:
7 goes into 16 2 times with a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
If we subtract 14 from 16, we get 2.
Include the next digit (6) from the dividend after 2, then repeat: 26 / 7

On to step 3:
26 divided by 7 is 3 with a remainder of 5.
Use 3 as the next digit of our solution. 
Result so far: 123.0
Subtract 21 from 26 to get 5.
Grab the next digit (3) from the dividend, add it to 5, then carry on: 53 / 7

Going ahead to step 4:
The number 7 fits into 53 7 times, leaving a remainder of 4.
Record the quotient 7 as the next digit in the result. 
Result so far: 1237.0
Subtracting 49 from 53 leaves us with 4.
Bring next digit (4) of the dividend behind the 4 and repeat the process: 44 / 7

Let's proceed to step 5:
7 goes into 44 6 times with a remainder of 2.
The next digit of our result is 6. 
Result so far: 12376.0
Subtract 42 from 44 to get 2.
Grab the next digit (7) from the dividend, add it to 2, then carry on: 27 / 7

On to step 6:
7 can be fit into 27 3 times, resulting in a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 123763.0
The remainder is 6 after subtracting 21 from 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 7:
7 goes into 60 8 times with a remainder of 4.
The next digit of our result is 8. 
Result so far: 123763.8
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.

Step 8:
40 divided by 7 is 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 123763.85
If we take 35 away from 40, 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.

Going ahead to step 9:
When dividing 50 by 7, we get 7 with a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 123763.857
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.

Let's proceed to step 10:
When dividing 10 by 7, we get 1 with a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 123763.8571
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.

Advancing to step 11:
7 goes into 30 4 times with a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 123763.85714
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 12:
The number 7 fits into 20 2 times, leaving a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 123763.857142
If we take 14 away from 20, we end up 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.

Moving on to step 13:
7 goes into 60 8 times with a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 123763.8571428
If we subtract 56 from 60, 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.

On to step 14:
40 divided by 7 is 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 123763.85714285
The remainder is 5 after subtracting 35 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

In conclusion, the division gives 123763.85714285 with a balance of 5e-09.