Let's divide 4164967 by 667
The aim is to understand the frequency of 667 in 4164967.

Step 1:
667 goes into 4 0 times with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Grab the next digit (1) from the dividend, add it to 4, then carry on: 41 / 667

Let's proceed to step 2:
The number 667 fits into 41 0 times, leaving a remainder of 41.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 41 leaves us with 41.
Grab the next digit (6) from the dividend, add it to 41, then carry on: 416 / 667

On to step 3:
When dividing 416 by 667, we get 0 with a remainder of 416.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 416 leaves us with 416.
Take the next digit (4) from the dividend and append it to 416, then repeat: 4164 / 667

Going ahead to step 4:
4164 divided by 667 is 6 with a remainder of 162.
Record the quotient 6 as the next digit in the result. 
Result so far: 6.0
Subtracting 4002 from 4164 leaves us with 162.
Include the next digit (9) from the dividend after 162, then repeat: 1629 / 667

Let's proceed to step 5:
If we divide 1629 by 667, we get 2 and a remainder of 295.
Write down 2 as next digit of the result. 
Result so far: 62.0
If we take 1334 away from 1629, we end up with 295.
Append the next digit (6) from the dividend to 295 and continue with: 2956 / 667

On to step 6:
667 can be fit into 2956 4 times, resulting in a remainder of 288.
Put 4 as the next digit of the answer. 
Result so far: 624.0
The remainder is 288 after subtracting 2668 from 2956.
Fetch the next digit (7) from the dividend, attach it to 288 and continue: 2887 / 667

Step 7:
667 goes into 2887 4 times with a remainder of 219.
Use 4 as the next digit of our solution. 
Result so far: 6244.0
Subtracting 2668 from 2887 leaves us with 219.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2190, and continue the process.

Advancing to step 8:
The number 667 fits into 2190 3 times, leaving a remainder of 189.
Put 3 as the next digit of the answer. 
Result so far: 6244.3
If we subtract 2001 from 2190, we get 189.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1890, and continue the process.

On to step 9:
If we divide 1890 by 667, we get 2 and a remainder of 556.
Use 2 as the next digit of our solution. 
Result so far: 6244.32
Deduct 1334 from 1890 and we're left with 556.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5560, and continue the process.

Step 10:
The number 667 fits into 5560 8 times, leaving a remainder of 224.
Put 8 as the next digit of the answer. 
Result so far: 6244.328
If we take 5336 away from 5560, we end up with 224.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2240, and continue the process.

Going ahead to step 11:
When dividing 2240 by 667, we get 3 with a remainder of 239.
Put 3 as the next digit of the answer. 
Result so far: 6244.3283
Subtracting 2001 from 2240 leaves us with 239.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2390, and continue the process.

On to step 12:
When dividing 2390 by 667, we get 3 with a remainder of 389.
Put 3 as the next digit of the answer. 
Result so far: 6244.32833
Subtract 2001 from 2390 to get 389.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3890, and continue the process.

The final outcome is 6244.32833, with a leftover of 0.000389.