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

On to step 1:
7 goes into 1 0 times with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Include the next digit (4) from the dividend after 1, then repeat: 14 / 7

Going ahead to step 2:
When dividing 14 by 7, we get 2 with a remainder of 0.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtracting 14 from 14 leaves us with 0.
Bring next digit (0) of the dividend behind the 0 and repeat the process: 0 / 7

Step 3:
If we divide 0 by 7, we get 0 and a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 20.0
If we take 0 away from 0, we end up with 0.
Bring next digit (6) of the dividend behind the 0 and repeat the process: 6 / 7

Advancing to step 4:
The number 7 fits into 6 0 times, leaving a remainder of 6.
Record the quotient 0 as the next digit in the result. 
Result so far: 200.0
If we take 0 away from 6, we end up with 6.
Take the next digit (6) from the dividend and append it to 6, then repeat: 66 / 7

On to step 5:
7 goes into 66 9 times with a remainder of 3.
Record the quotient 9 as the next digit in the result. 
Result so far: 2009.0
Subtract 63 from 66 to get 3.
Include the next digit (5) from the dividend after 3, then repeat: 35 / 7

Moving on to step 6:
35 divided by 7 is 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 20095.0
Deduct 35 from 35 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.

Moving on to step 7:
7 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 20095.0
Subtracting 0 from 0 leaves us 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.

Step 8:
When dividing 0 by 7, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 20095.0
If we take 0 away from 0, 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.

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