We look at the division of 39674801 by 366 
The aim is to understand the frequency of 366 in 39674801.

Advancing to step 1:
366 goes into 3 0 times with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 366

Moving on to step 2:
When dividing 39 by 366, we get 0 with a remainder of 39.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 39 to get 39.
Bring next digit (6) of the dividend behind the 39 and repeat the process: 396 / 366

Advancing to step 3:
The number 366 fits into 396 1 times, leaving a remainder of 30.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 366 from 396 to get 30.
Include the next digit (7) from the dividend after 30, then repeat: 307 / 366

Going ahead to step 4:
If we divide 307 by 366, we get 0 and a remainder of 307.
The next digit of our result is 0. 
Result so far: 10.0
Subtracting 0 from 307 leaves us with 307.
Append the next digit (4) from the dividend to 307 and continue with: 3074 / 366

Advancing to step 5:
The number 366 fits into 3074 8 times, leaving a remainder of 146.
Use 8 as the next digit of our solution. 
Result so far: 108.0
Subtract 2928 from 3074 to get 146.
Include the next digit (8) from the dividend after 146, then repeat: 1468 / 366

On to step 6:
1468 divided by 366 is 4 with a remainder of 4.
The next digit of our result is 4. 
Result so far: 1084.0
The remainder is 4 after subtracting 1464 from 1468.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 366

On to step 7:
When dividing 40 by 366, we get 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 10840.0
The remainder is 40 after subtracting 0 from 40.
Include the next digit (1) from the dividend after 40, then repeat: 401 / 366

Advancing to step 8:
The number 366 fits into 401 1 times, leaving a remainder of 35.
The next digit of our result is 1. 
Result so far: 108401.0
Deduct 366 from 401 and we're left with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Moving on to step 9:
The number 366 fits into 350 0 times, leaving a remainder of 350.
Use 0 as the next digit of our solution. 
Result so far: 108401.0
Deduct 0 from 350 and we're left with 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3500, and continue the process.

Moving on to step 10:
The number 366 fits into 3500 9 times, leaving a remainder of 206.
Use 9 as the next digit of our solution. 
Result so far: 108401.09
If we subtract 3294 from 3500, we get 206.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2060, and continue the process.

Let's proceed to step 11:
366 goes into 2060 5 times with a remainder of 230.
Use 5 as the next digit of our solution. 
Result so far: 108401.095
If we subtract 1830 from 2060, we get 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2300, and continue the process.

Going ahead to step 12:
The number 366 fits into 2300 6 times, leaving a remainder of 104.
Put 6 as the next digit of the answer. 
Result so far: 108401.0956
Subtract 2196 from 2300 to get 104.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1040, and continue the process.

Advancing to step 13:
366 goes into 1040 2 times with a remainder of 308.
Write down 2 as next digit of the result. 
Result so far: 108401.09562
Subtracting 732 from 1040 leaves us with 308.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3080, and continue the process.

Let's proceed to step 14:
If we divide 3080 by 366, we get 8 and a remainder of 152.
The next digit of our result is 8. 
Result so far: 108401.095628
If we subtract 2928 from 3080, we get 152.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1520, and continue the process.

On to step 15:
If we divide 1520 by 366, we get 4 and a remainder of 56.
Record the quotient 4 as the next digit in the result. 
Result so far: 108401.0956284
Subtract 1464 from 1520 to get 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Let's proceed to step 16:
366 can be fit into 560 1 times, resulting in a remainder of 194.
Use 1 as the next digit of our solution. 
Result so far: 108401.09562841
Deduct 366 from 560 and we're left with 194.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1940, and continue the process.

After the division, we end up with 108401.09562841 and a remainder of 1.94e-07.