We divide 997915 by 7
The aim is to understand the frequency of 7 in 997915.

Advancing to step 1:
When dividing 9 by 7, we get 1 with a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 7 away from 9, we end up with 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
Deduct 28 from 29 and we're left with 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 7

Let's proceed to step 3:
When dividing 17 by 7, we get 2 with a remainder of 3.
Write down 2 as next digit of the result. 
Result so far: 142.0
If we subtract 14 from 17, we get 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 7

On to step 4:
If we divide 39 by 7, we get 5 and a remainder of 4.
The next digit of our result is 5. 
Result so far: 1425.0
Subtract 35 from 39 to get 4.
Include the next digit (1) from the dividend after 4, then repeat: 41 / 7

Moving on to step 5:
The number 7 fits into 41 5 times, leaving a remainder of 6.
Put 5 as the next digit of the answer. 
Result so far: 14255.0
Subtracting 35 from 41 leaves us with 6.
Fetch the next digit (5) from the dividend, attach it to 6 and continue: 65 / 7

Going ahead to step 6:
7 can be fit into 65 9 times, resulting in a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 142559.0
Deduct 63 from 65 and we're left 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.

Moving on to step 7:
When dividing 20 by 7, we get 2 with a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 142559.2
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.

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

Moving on to step 9:
40 divided by 7 is 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 142559.285
Subtracting 35 from 40 leaves us 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.

On to step 10:
If we divide 50 by 7, we get 7 and a remainder of 1.
The next digit of our result is 7. 
Result so far: 142559.2857
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 11:
When dividing 10 by 7, we get 1 with a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 142559.28571
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.

Moving on to step 12:
7 can be fit into 30 4 times, resulting in a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 142559.285714
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.

Advancing to step 13:
7 can be fit into 20 2 times, resulting in a remainder of 6.
The next digit of our result is 2. 
Result so far: 142559.2857142
Deduct 14 from 20 and we're left 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.

Let's proceed to step 14:
7 goes into 60 8 times with a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 142559.28571428
Deduct 56 from 60 and we're left 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.

The quotient of the division is 142559.28571428, and the remainder is 4e-09.