We're dividing 40706513 by 664 
The aim is to understand the frequency of 664 in 40706513.

On to step 1:
When dividing 4 by 664, we get 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 664

Step 2:
If we divide 40 by 664, we get 0 and a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Bring next digit (7) of the dividend behind the 40 and repeat the process: 407 / 664

On to step 3:
The number 664 fits into 407 0 times, leaving a remainder of 407.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 407 to get 407.
Bring next digit (0) of the dividend behind the 407 and repeat the process: 4070 / 664

Let's proceed to step 4:
If we divide 4070 by 664, we get 6 and a remainder of 86.
Put 6 as the next digit of the answer. 
Result so far: 6.0
Deduct 3984 from 4070 and we're left with 86.
Fetch the next digit (6) from the dividend, attach it to 86 and continue: 866 / 664

Going ahead to step 5:
866 divided by 664 is 1 with a remainder of 202.
The number 1 becomes the next digit in our result. 
Result so far: 61.0
Subtract 664 from 866 to get 202.
Fetch the next digit (5) from the dividend, attach it to 202 and continue: 2025 / 664

Advancing to step 6:
664 can be fit into 2025 3 times, resulting in a remainder of 33.
Use 3 as the next digit of our solution. 
Result so far: 613.0
Subtract 1992 from 2025 to get 33.
Fetch the next digit (1) from the dividend, attach it to 33 and continue: 331 / 664

Moving on to step 7:
331 divided by 664 is 0 with a remainder of 331.
The number 0 becomes the next digit in our result. 
Result so far: 6130.0
Subtracting 0 from 331 leaves us with 331.
Take the next digit (3) from the dividend and append it to 331, then repeat: 3313 / 664

On to step 8:
664 goes into 3313 4 times with a remainder of 657.
The next digit of our result is 4. 
Result so far: 61304.0
Subtracting 2656 from 3313 leaves us with 657.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6570, and continue the process.

Let's proceed to step 9:
If we divide 6570 by 664, we get 9 and a remainder of 594.
Write down 9 as next digit of the result. 
Result so far: 61304.9
Subtracting 5976 from 6570 leaves us with 594.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5940, and continue the process.

Step 10:
664 goes into 5940 8 times with a remainder of 628.
The next digit of our result is 8. 
Result so far: 61304.98
If we subtract 5312 from 5940, we get 628.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6280, and continue the process.

Going ahead to step 11:
If we divide 6280 by 664, we get 9 and a remainder of 304.
Put 9 as the next digit of the answer. 
Result so far: 61304.989
Subtracting 5976 from 6280 leaves us with 304.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3040, and continue the process.

Moving on to step 12:
664 goes into 3040 4 times with a remainder of 384.
Use 4 as the next digit of our solution. 
Result so far: 61304.9894
Deduct 2656 from 3040 and we're left with 384.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3840, and continue the process.

Moving on to step 13:
When dividing 3840 by 664, we get 5 with a remainder of 520.
Use 5 as the next digit of our solution. 
Result so far: 61304.98945
Subtract 3320 from 3840 to get 520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5200, and continue the process.

Advancing to step 14:
5200 divided by 664 is 7 with a remainder of 552.
Put 7 as the next digit of the answer. 
Result so far: 61304.989457
Subtracting 4648 from 5200 leaves us with 552.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5520, and continue the process.

Let's proceed to step 15:
664 goes into 5520 8 times with a remainder of 208.
Put 8 as the next digit of the answer. 
Result so far: 61304.9894578
Subtract 5312 from 5520 to get 208.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2080, and continue the process.

Moving on to step 16:
When dividing 2080 by 664, we get 3 with a remainder of 88.
Write down 3 as next digit of the result. 
Result so far: 61304.98945783
Deduct 1992 from 2080 and we're left with 88.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

The quotient of the division is 61304.98945783, and the remainder is 8.8e-08.