40966489 divided by 366 
The aim is to understand the frequency of 366 in 40966489.

Step 1:
366 can be fit into 4 0 times, resulting in a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 366

Moving on to step 2:
When dividing 40 by 366, we get 0 with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Take the next digit (9) from the dividend and append it to 40, then repeat: 409 / 366

Moving on to step 3:
366 goes into 409 1 times with a remainder of 43.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 366 from 409 leaves us with 43.
Fetch the next digit (6) from the dividend, attach it to 43 and continue: 436 / 366

On to step 4:
When dividing 436 by 366, we get 1 with a remainder of 70.
The next digit of our result is 1. 
Result so far: 11.0
The remainder is 70 after subtracting 366 from 436.
Bring next digit (6) of the dividend behind the 70 and repeat the process: 706 / 366

Moving on to step 5:
706 divided by 366 is 1 with a remainder of 340.
The next digit of our result is 1. 
Result so far: 111.0
If we take 366 away from 706, we end up with 340.
Bring next digit (4) of the dividend behind the 340 and repeat the process: 3404 / 366

Advancing to step 6:
3404 divided by 366 is 9 with a remainder of 110.
Put 9 as the next digit of the answer. 
Result so far: 1119.0
Deduct 3294 from 3404 and we're left with 110.
Fetch the next digit (8) from the dividend, attach it to 110 and continue: 1108 / 366

Moving on to step 7:
When dividing 1108 by 366, we get 3 with a remainder of 10.
Record the quotient 3 as the next digit in the result. 
Result so far: 11193.0
If we take 1098 away from 1108, we end up with 10.
Fetch the next digit (9) from the dividend, attach it to 10 and continue: 109 / 366

Going ahead to step 8:
When dividing 109 by 366, we get 0 with a remainder of 109.
Write down 0 as next digit of the result. 
Result so far: 111930.0
The remainder is 109 after subtracting 0 from 109.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1090, and continue the process.

Moving on to step 9:
The number 366 fits into 1090 2 times, leaving a remainder of 358.
Record the quotient 2 as the next digit in the result. 
Result so far: 111930.2
Subtract 732 from 1090 to get 358.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3580, and continue the process.

Advancing to step 10:
366 goes into 3580 9 times with a remainder of 286.
The next digit of our result is 9. 
Result so far: 111930.29
Subtract 3294 from 3580 to get 286.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2860, and continue the process.

Advancing to step 11:
366 can be fit into 2860 7 times, resulting in a remainder of 298.
Use 7 as the next digit of our solution. 
Result so far: 111930.297
If we subtract 2562 from 2860, we get 298.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2980, and continue the process.

Step 12:
If we divide 2980 by 366, we get 8 and a remainder of 52.
Put 8 as the next digit of the answer. 
Result so far: 111930.2978
Subtract 2928 from 2980 to get 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Going ahead to step 13:
When dividing 520 by 366, we get 1 with a remainder of 154.
Write down 1 as next digit of the result. 
Result so far: 111930.29781
The remainder is 154 after subtracting 366 from 520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1540, and continue the process.

Advancing to step 14:
366 can be fit into 1540 4 times, resulting in a remainder of 76.
The number 4 becomes the next digit in our result. 
Result so far: 111930.297814
Subtract 1464 from 1540 to get 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Moving on to step 15:
If we divide 760 by 366, we get 2 and a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 111930.2978142
If we take 732 away from 760, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 16:
The number 366 fits into 280 0 times, leaving a remainder of 280.
Use 0 as the next digit of our solution. 
Result so far: 111930.2978142
The remainder is 280 after subtracting 0 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2800, and continue the process.

The quotient of the division is 111930.2978142, and the remainder is 2.8e-07.