We're dividing 296794 by 7 
The aim is to understand the frequency of 7 in 296794.

Going ahead to step 1:
7 can be fit into 2 0 times, resulting in a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 2 after subtracting 0 from 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 7

On to step 2:
If we divide 29 by 7, we get 4 and a remainder of 1.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Subtract 28 from 29 to get 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 7

Advancing to step 3:
The number 7 fits into 16 2 times, leaving a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 42.0
If we subtract 14 from 16, we get 2.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 7

Moving on to step 4:
7 goes into 27 3 times with a remainder of 6.
The next digit of our result is 3. 
Result so far: 423.0
Subtract 21 from 27 to get 6.
Grab the next digit (9) from the dividend, add it to 6, then carry on: 69 / 7

On to step 5:
When dividing 69 by 7, we get 9 with a remainder of 6.
The next digit of our result is 9. 
Result so far: 4239.0
If we take 63 away from 69, we end up with 6.
Bring next digit (4) of the dividend behind the 6 and repeat the process: 64 / 7

Advancing to step 6:
When dividing 64 by 7, we get 9 with a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 42399.0
Deduct 63 from 64 and we're left 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.
Put 1 as the next digit of the answer. 
Result so far: 42399.1
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 8:
When dividing 30 by 7, we get 4 with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 42399.14
If we take 28 away from 30, we end up 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.

Advancing to step 9:
When dividing 20 by 7, we get 2 with a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 42399.142
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 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: 42399.1428
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.

Advancing to step 11:
When dividing 40 by 7, we get 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 42399.14285
Subtract 35 from 40 to 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.

Going ahead to step 12:
The number 7 fits into 50 7 times, leaving a remainder of 1.
The next digit of our result is 7. 
Result so far: 42399.142857
If we subtract 49 from 50, we 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.

Going ahead to step 13:
10 divided by 7 is 1 with a remainder of 3.
The next digit of our result is 1. 
Result so far: 42399.1428571
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.

Step 14:
If we divide 30 by 7, we get 4 and a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 42399.14285714
Deduct 28 from 30 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.

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