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

On to step 1:
7 goes into 3 0 times with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 7

Step 2:
7 goes into 38 5 times with a remainder of 3.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
If we subtract 35 from 38, we get 3.
Append the next digit (6) from the dividend to 3 and continue with: 36 / 7

Step 3:
When dividing 36 by 7, we get 5 with a remainder of 1.
Write down 5 as next digit of the result. 
Result so far: 55.0
If we take 35 away from 36, we end up with 1.
Fetch the next digit (5) from the dividend, attach it to 1 and continue: 15 / 7

Let's proceed to step 4:
15 divided by 7 is 2 with a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 552.0
The remainder is 1 after subtracting 14 from 15.
Take the next digit (8) from the dividend and append it to 1, then repeat: 18 / 7

On to step 5:
When dividing 18 by 7, we get 2 with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 5522.0
The remainder is 4 after subtracting 14 from 18.
Take the next digit (6) from the dividend and append it to 4, then repeat: 46 / 7

Let's proceed to step 6:
46 divided by 7 is 6 with a remainder of 4.
The next digit of our result is 6. 
Result so far: 55226.0
If we take 42 away from 46, we end up 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.

Advancing to step 7:
40 divided by 7 is 5 with a remainder of 5.
The next digit of our result is 5. 
Result so far: 55226.5
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.

Going ahead to step 8:
The number 7 fits into 50 7 times, leaving a remainder of 1.
The next digit of our result is 7. 
Result so far: 55226.57
The remainder is 1 after subtracting 49 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 9:
7 goes into 10 1 times with a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 55226.571
Subtracting 7 from 10 leaves us 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 10:
30 divided by 7 is 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 55226.5714
If we take 28 away from 30, we end up 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.

Going ahead to step 11:
If we divide 20 by 7, we get 2 and a remainder of 6.
The next digit of our result is 2. 
Result so far: 55226.57142
If we subtract 14 from 20, we 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.

Going ahead to step 12:
7 can be fit into 60 8 times, resulting in a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 55226.571428
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.

Step 13:
7 can be fit into 40 5 times, resulting in a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 55226.5714285
Deduct 35 from 40 and we're left 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 14:
7 can be fit into 50 7 times, resulting in a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 55226.57142857
The remainder is 1 after subtracting 49 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

In conclusion, the division gives 55226.57142857 with a balance of 1e-09.