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

Going ahead to step 1:
When dividing 9 by 7, we get 1 with a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 7 from 9 to get 2.
Append the next digit (9) from the dividend to 2 and continue with: 29 / 7

Let's proceed to step 2:
29 divided by 7 is 4 with a remainder of 1.
Put 4 as the next digit of the answer. 
Result so far: 14.0
If we subtract 28 from 29, we get 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 7

Going ahead to step 3:
7 can be fit into 18 2 times, resulting in a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 142.0
Subtracting 14 from 18 leaves us with 4.
Include the next digit (1) from the dividend after 4, then repeat: 41 / 7

Step 4:
7 goes into 41 5 times with a remainder of 6.
The next digit of our result is 5. 
Result so far: 1425.0
If we subtract 35 from 41, we get 6.
Take the next digit (5) from the dividend and append it to 6, then repeat: 65 / 7

On to step 5:
If we divide 65 by 7, we get 9 and a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 14259.0
If we subtract 63 from 65, we get 2.
Append the next digit (9) from the dividend to 2 and continue with: 29 / 7

On to step 6:
7 goes into 29 4 times with a remainder of 1.
Put 4 as the next digit of the answer. 
Result so far: 142594.0
Subtracting 28 from 29 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 7:
7 goes into 10 1 times with a remainder of 3.
The next digit of our result is 1. 
Result so far: 142594.1
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.

Let's proceed to step 8:
If we divide 30 by 7, we get 4 and a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 142594.14
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.

Step 9:
The number 7 fits into 20 2 times, leaving a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 142594.142
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.

On to step 10:
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: 142594.1428
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.

Moving on to step 11:
7 goes into 40 5 times with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 142594.14285
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.

Step 12:
50 divided by 7 is 7 with a remainder of 1.
The next digit of our result is 7. 
Result so far: 142594.142857
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.

Advancing to step 13:
10 divided by 7 is 1 with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 142594.1428571
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.

Moving on to step 14:
30 divided by 7 is 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 142594.14285714
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.

The quotient of the division is 142594.14285714, and the remainder is 2e-09.