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

Going ahead to step 1:
7 can be fit into 4 0 times, resulting in a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Fetch the next digit (9) from the dividend, attach it to 4 and continue: 49 / 7

Going ahead to step 2:
7 can be fit into 49 7 times, resulting in a remainder of 0.
The next digit of our result is 7. 
Result so far: 7.0
Subtract 49 from 49 to get 0.
Take the next digit (8) from the dividend and append it to 0, then repeat: 8 / 7

Step 3:
8 divided by 7 is 1 with a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 71.0
Subtract 7 from 8 to get 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 7

Moving on to step 4:
The number 7 fits into 17 2 times, leaving a remainder of 3.
Write down 2 as next digit of the result. 
Result so far: 712.0
If we subtract 14 from 17, we get 3.
Grab the next digit (8) from the dividend, add it to 3, then carry on: 38 / 7

Step 5:
The number 7 fits into 38 5 times, leaving a remainder of 3.
Put 5 as the next digit of the answer. 
Result so far: 7125.0
Deduct 35 from 38 and we're left 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 6:
30 divided by 7 is 4 with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 7125.4
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.

Step 7:
The number 7 fits into 20 2 times, leaving a remainder of 6.
Record the quotient 2 as the next digit in the result. 
Result so far: 7125.42
Subtracting 14 from 20 leaves us 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:
The number 7 fits into 60 8 times, leaving a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 7125.428
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.

Let's proceed to step 9:
If we divide 40 by 7, we get 5 and a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 7125.4285
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.

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: 7125.42857
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.

Advancing to step 11:
If we divide 10 by 7, we get 1 and a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 7125.428571
Deduct 7 from 10 and we're left 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:
When dividing 30 by 7, we get 4 with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 7125.4285714
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 13:
7 can be fit into 20 2 times, resulting in a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 7125.42857142
If we take 14 away from 20, we end up 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.

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