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

Going ahead to step 1:
When dividing 9 by 7, we get 1 with a remainder of 2.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 2 after subtracting 7 from 9.
Fetch the next digit (8) from the dividend, attach it to 2 and continue: 28 / 7

Let's proceed to step 2:
7 can be fit into 28 4 times, resulting in a remainder of 0.
Use 4 as the next digit of our solution. 
Result so far: 14.0
Subtract 28 from 28 to get 0.
Fetch the next digit (7) from the dividend, attach it to 0 and continue: 7 / 7

Advancing to step 3:
If we divide 7 by 7, we get 1 and a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 141.0
Subtract 7 from 7 to get 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 7

Going ahead to step 4:
The number 7 fits into 8 1 times, leaving a remainder of 1.
The next digit of our result is 1. 
Result so far: 1411.0
Deduct 7 from 8 and we're left with 1.
Fetch the next digit (5) from the dividend, attach it to 1 and continue: 15 / 7

Moving on to step 5:
When dividing 15 by 7, we get 2 with a remainder of 1.
Use 2 as the next digit of our solution. 
Result so far: 14112.0
If we take 14 away from 15, we end up with 1.
Fetch the next digit (4) from the dividend, attach it to 1 and continue: 14 / 7

Let's proceed to step 6:
The number 7 fits into 14 2 times, leaving a remainder of 0.
Record the quotient 2 as the next digit in the result. 
Result so far: 141122.0
If we take 14 away from 14, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 7:
If we divide 0 by 7, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 141122.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 8:
7 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 141122.0
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 141122.0, and the remainder is 0.0.