Let's divide 798785 by 7
The aim is to understand the frequency of 7 in 798785.

Step 1:
7 can be fit into 7 1 times, resulting in a remainder of 0.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 0 after subtracting 7 from 7.
Grab the next digit (9) from the dividend, add it to 0, then carry on: 9 / 7

Let's proceed to step 2:
7 can be fit into 9 1 times, resulting in a remainder of 2.
The next digit of our result is 1. 
Result so far: 11.0
Subtract 7 from 9 to get 2.
Fetch the next digit (8) from the dividend, attach it to 2 and continue: 28 / 7

On to step 3:
If we divide 28 by 7, we get 4 and a remainder of 0.
Use 4 as the next digit of our solution. 
Result so far: 114.0
Deduct 28 from 28 and we're left with 0.
Fetch the next digit (7) from the dividend, attach it to 0 and continue: 7 / 7

Advancing to step 4:
If we divide 7 by 7, we get 1 and a remainder of 0.
The next digit of our result is 1. 
Result so far: 1141.0
Subtract 7 from 7 to get 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 7

Advancing to step 5:
7 can be fit into 8 1 times, resulting in a remainder of 1.
The next digit of our result is 1. 
Result so far: 11411.0
If we subtract 7 from 8, we get 1.
Grab the next digit (5) from the dividend, add it to 1, then carry on: 15 / 7

Let's proceed to step 6:
The number 7 fits into 15 2 times, leaving a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 114112.0
If we take 14 away from 15, we end up 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:
If we divide 10 by 7, we get 1 and a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 114112.1
Subtract 7 from 10 to 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.

Going ahead to step 8:
When dividing 30 by 7, we get 4 with a remainder of 2.
The next digit of our result is 4. 
Result so far: 114112.14
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.

Let's proceed to step 9:
7 goes into 20 2 times with a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 114112.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.

Step 10:
7 goes into 60 8 times with a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 114112.1428
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.

Let's proceed to step 11:
The number 7 fits into 40 5 times, leaving a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 114112.14285
If we take 35 away from 40, we end up 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.

Let's proceed to step 12:
50 divided by 7 is 7 with a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 114112.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.

On to step 13:
7 can be fit into 10 1 times, resulting in a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 114112.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:
When dividing 30 by 7, we get 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 114112.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.

In conclusion, the division gives 114112.14285714 with a balance of 2e-09.