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

Step 1:
9 divided by 7 is 1 with a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 7 from 9, we get 2.
Take the next digit (9) from the dividend and append it to 2, then repeat: 29 / 7

On to step 2:
29 divided by 7 is 4 with a remainder of 1.
The number 4 becomes the next digit in our result. 
Result so far: 14.0
If we subtract 28 from 29, we get 1.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 7

On to step 3:
7 goes into 19 2 times with a remainder of 5.
The next digit of our result is 2. 
Result so far: 142.0
Deduct 14 from 19 and we're left with 5.
Append the next digit (5) from the dividend to 5 and continue with: 55 / 7

On to step 4:
When dividing 55 by 7, we get 7 with a remainder of 6.
The number 7 becomes the next digit in our result. 
Result so far: 1427.0
The remainder is 6 after subtracting 49 from 55.
Fetch the next digit (8) from the dividend, attach it to 6 and continue: 68 / 7

Advancing to step 5:
7 goes into 68 9 times with a remainder of 5.
The next digit of our result is 9. 
Result so far: 14279.0
The remainder is 5 after subtracting 63 from 68.
Include the next digit (5) from the dividend after 5, then repeat: 55 / 7

Let's proceed to step 6:
55 divided by 7 is 7 with a remainder of 6.
Record the quotient 7 as the next digit in the result. 
Result so far: 142797.0
If we subtract 49 from 55, 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.

On to step 7:
If we divide 60 by 7, we get 8 and a remainder of 4.
The next digit of our result is 8. 
Result so far: 142797.8
Subtracting 56 from 60 leaves us 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.

On to step 8:
7 can be fit into 40 5 times, resulting in a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 142797.85
If we subtract 35 from 40, we 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.

On to step 9:
7 goes into 50 7 times with a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 142797.857
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.

Going ahead to step 10:
If we divide 10 by 7, we get 1 and a remainder of 3.
The next digit of our result is 1. 
Result so far: 142797.8571
If we subtract 7 from 10, 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.

Moving on to step 11:
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: 142797.85714
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 12:
7 can be fit into 20 2 times, resulting in a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 142797.857142
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.

Moving on to step 13:
The number 7 fits into 60 8 times, leaving a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 142797.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.

Going ahead to step 14:
7 goes into 40 5 times with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 142797.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.

The final result is 142797.85714285 with a remainder of 5e-09.