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

Advancing to step 1:
When dividing 7 by 7, we get 1 with a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 7 from 7 and we're left with 0.
Fetch the next digit (9) from the dividend, attach it to 0 and continue: 9 / 7

Step 2:
9 divided by 7 is 1 with a remainder of 2.
The next digit of our result is 1. 
Result so far: 11.0
The remainder is 2 after subtracting 7 from 9.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 7

Step 3:
7 goes into 27 3 times with a remainder of 6.
Put 3 as the next digit of the answer. 
Result so far: 113.0
Subtract 21 from 27 to get 6.
Bring next digit (0) of the dividend behind the 6 and repeat the process: 60 / 7

Step 4:
7 goes into 60 8 times with a remainder of 4.
The next digit of our result is 8. 
Result so far: 1138.0
Subtract 56 from 60 to get 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 7

Step 5:
When dividing 40 by 7, we get 5 with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 11385.0
If we take 35 away from 40, we end up with 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 7

Advancing to step 6:
51 divided by 7 is 7 with a remainder of 2.
Use 7 as the next digit of our solution. 
Result so far: 113857.0
Subtracting 49 from 51 leaves us 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 7:
7 goes into 20 2 times with a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 113857.2
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.

Moving on to step 8:
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: 113857.28
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 9:
The number 7 fits into 40 5 times, leaving a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 113857.285
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.

Let's proceed to step 10:
50 divided by 7 is 7 with a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 113857.2857
Subtract 49 from 50 to 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.

Step 11:
7 goes into 10 1 times with a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 113857.28571
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.

On to step 12:
7 goes into 30 4 times with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 113857.285714
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.

On to step 13:
20 divided by 7 is 2 with a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 113857.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.

Step 14:
The number 7 fits into 60 8 times, leaving a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 113857.28571428
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.

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