518842 divided by 7 
The aim is to understand the frequency of 7 in 518842.

On to step 1:
5 divided by 7 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 7

Going ahead to step 2:
When dividing 51 by 7, we get 7 with a remainder of 2.
Put 7 as the next digit of the answer. 
Result so far: 7.0
If we subtract 49 from 51, we get 2.
Grab the next digit (8) from the dividend, add it to 2, then carry on: 28 / 7

On to step 3:
28 divided by 7 is 4 with a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 74.0
If we subtract 28 from 28, we get 0.
Include the next digit (8) from the dividend after 0, then repeat: 8 / 7

Moving on to step 4:
7 goes into 8 1 times with a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 741.0
Subtract 7 from 8 to get 1.
Grab the next digit (4) from the dividend, add it to 1, then carry on: 14 / 7

Going ahead to step 5:
7 can be fit into 14 2 times, resulting in a remainder of 0.
Use 2 as the next digit of our solution. 
Result so far: 7412.0
If we subtract 14 from 14, we get 0.
Append the next digit (2) from the dividend to 0 and continue with: 2 / 7

Let's proceed to step 6:
7 can be fit into 2 0 times, resulting in a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 74120.0
Subtracting 0 from 2 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.

On to step 7:
The number 7 fits into 20 2 times, leaving a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 74120.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.

Step 8:
When dividing 60 by 7, we get 8 with a remainder of 4.
The next digit of our result is 8. 
Result so far: 74120.28
Subtract 56 from 60 to 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:
40 divided by 7 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 74120.285
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.

On to step 10:
When dividing 50 by 7, we get 7 with a remainder of 1.
The next digit of our result is 7. 
Result so far: 74120.2857
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.

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: 74120.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:
If we divide 30 by 7, we get 4 and a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 74120.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:
The number 7 fits into 20 2 times, leaving a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 74120.2857142
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.

Moving on to step 14:
60 divided by 7 is 8 with a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 74120.28571428
Subtracting 56 from 60 leaves us 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.

After the division, we end up with 74120.28571428 and a remainder of 4e-09.