We look at the division of 2999767 by 667 
The aim is to understand the frequency of 667 in 2999767.

On to step 1:
2 divided by 667 is 0 with a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 2 and we're left with 2.
Bring next digit (9) of the dividend behind the 2 and repeat the process: 29 / 667

Step 2:
If we divide 29 by 667, we get 0 and a remainder of 29.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 29, we end up with 29.
Fetch the next digit (9) from the dividend, attach it to 29 and continue: 299 / 667

Going ahead to step 3:
667 goes into 299 0 times with a remainder of 299.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 299 after subtracting 0 from 299.
Include the next digit (9) from the dividend after 299, then repeat: 2999 / 667

On to step 4:
The number 667 fits into 2999 4 times, leaving a remainder of 331.
Use 4 as the next digit of our solution. 
Result so far: 4.0
If we take 2668 away from 2999, we end up with 331.
Fetch the next digit (7) from the dividend, attach it to 331 and continue: 3317 / 667

Moving on to step 5:
3317 divided by 667 is 4 with a remainder of 649.
The number 4 becomes the next digit in our result. 
Result so far: 44.0
The remainder is 649 after subtracting 2668 from 3317.
Take the next digit (6) from the dividend and append it to 649, then repeat: 6496 / 667

Going ahead to step 6:
When dividing 6496 by 667, we get 9 with a remainder of 493.
Put 9 as the next digit of the answer. 
Result so far: 449.0
Deduct 6003 from 6496 and we're left with 493.
Fetch the next digit (7) from the dividend, attach it to 493 and continue: 4937 / 667

Let's proceed to step 7:
The number 667 fits into 4937 7 times, leaving a remainder of 268.
Write down 7 as next digit of the result. 
Result so far: 4497.0
Subtracting 4669 from 4937 leaves us with 268.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2680, and continue the process.

Let's proceed to step 8:
The number 667 fits into 2680 4 times, leaving a remainder of 12.
Record the quotient 4 as the next digit in the result. 
Result so far: 4497.4
The remainder is 12 after subtracting 2668 from 2680.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 9:
If we divide 120 by 667, we get 0 and a remainder of 120.
Use 0 as the next digit of our solution. 
Result so far: 4497.4
Subtracting 0 from 120 leaves us with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Moving on to step 10:
When dividing 1200 by 667, we get 1 with a remainder of 533.
Use 1 as the next digit of our solution. 
Result so far: 4497.401
The remainder is 533 after subtracting 667 from 1200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5330, and continue the process.

Advancing to step 11:
If we divide 5330 by 667, we get 7 and a remainder of 661.
Write down 7 as next digit of the result. 
Result so far: 4497.4017
Subtract 4669 from 5330 to get 661.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6610, and continue the process.

Going ahead to step 12:
667 can be fit into 6610 9 times, resulting in a remainder of 607.
Use 9 as the next digit of our solution. 
Result so far: 4497.40179
Deduct 6003 from 6610 and we're left with 607.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6070, and continue the process.

Advancing to step 13:
667 can be fit into 6070 9 times, resulting in a remainder of 67.
Record the quotient 9 as the next digit in the result. 
Result so far: 4497.401799
If we take 6003 away from 6070, we end up with 67.
Since there are no more digits in the dividend, we add a zero to the remainder making it 670, and continue the process.

The quotient of the division is 4497.401799, and the remainder is 6.7e-06.