We look at the division of 987981 by 6 
The aim is to understand the frequency of 6 in 987981.

Moving on to step 1:
When dividing 9 by 6, we get 1 with a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 6 from 9 to get 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 6

Step 2:
38 divided by 6 is 6 with a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 16.0
The remainder is 2 after subtracting 36 from 38.
Bring next digit (7) of the dividend behind the 2 and repeat the process: 27 / 6

Moving on to step 3:
If we divide 27 by 6, we get 4 and a remainder of 3.
Record the quotient 4 as the next digit in the result. 
Result so far: 164.0
If we subtract 24 from 27, we get 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 6

On to step 4:
The number 6 fits into 39 6 times, leaving a remainder of 3.
The next digit of our result is 6. 
Result so far: 1646.0
Subtract 36 from 39 to get 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 6

Step 5:
6 goes into 38 6 times with a remainder of 2.
The next digit of our result is 6. 
Result so far: 16466.0
If we subtract 36 from 38, we get 2.
Take the next digit (1) from the dividend and append it to 2, then repeat: 21 / 6

Going ahead to step 6:
21 divided by 6 is 3 with a remainder of 3.
The number 3 becomes the next digit in our result. 
Result so far: 164663.0
Deduct 18 from 21 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.

Advancing to step 7:
6 goes into 30 5 times with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 164663.5
Deduct 30 from 30 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.

Advancing to step 8:
6 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 164663.5
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.

Going ahead to step 9:
The number 6 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 164663.5
The remainder is 0 after subtracting 0 from 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 164663.5, and the remainder is 0.0.