Let's divide 40787665 by 673
The aim is to understand the frequency of 673 in 40787665.

Advancing to step 1:
4 divided by 673 is 0 with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 673

On to step 2:
If we divide 40 by 673, we get 0 and a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Include the next digit (7) from the dividend after 40, then repeat: 407 / 673

Advancing to step 3:
If we divide 407 by 673, we get 0 and a remainder of 407.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 407, we get 407.
Append the next digit (8) from the dividend to 407 and continue with: 4078 / 673

On to step 4:
When dividing 4078 by 673, we get 6 with a remainder of 40.
Record the quotient 6 as the next digit in the result. 
Result so far: 6.0
Subtracting 4038 from 4078 leaves us with 40.
Append the next digit (7) from the dividend to 40 and continue with: 407 / 673

Let's proceed to step 5:
407 divided by 673 is 0 with a remainder of 407.
The number 0 becomes the next digit in our result. 
Result so far: 60.0
Deduct 0 from 407 and we're left with 407.
Take the next digit (6) from the dividend and append it to 407, then repeat: 4076 / 673

On to step 6:
If we divide 4076 by 673, we get 6 and a remainder of 38.
The next digit of our result is 6. 
Result so far: 606.0
If we take 4038 away from 4076, we end up with 38.
Include the next digit (6) from the dividend after 38, then repeat: 386 / 673

Advancing to step 7:
The number 673 fits into 386 0 times, leaving a remainder of 386.
Record the quotient 0 as the next digit in the result. 
Result so far: 6060.0
The remainder is 386 after subtracting 0 from 386.
Append the next digit (5) from the dividend to 386 and continue with: 3865 / 673

Let's proceed to step 8:
If we divide 3865 by 673, we get 5 and a remainder of 500.
Use 5 as the next digit of our solution. 
Result so far: 60605.0
Deduct 3365 from 3865 and we're left with 500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5000, and continue the process.

Moving on to step 9:
The number 673 fits into 5000 7 times, leaving a remainder of 289.
The next digit of our result is 7. 
Result so far: 60605.7
If we take 4711 away from 5000, we end up with 289.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2890, and continue the process.

Step 10:
If we divide 2890 by 673, we get 4 and a remainder of 198.
Record the quotient 4 as the next digit in the result. 
Result so far: 60605.74
The remainder is 198 after subtracting 2692 from 2890.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1980, and continue the process.

Advancing to step 11:
1980 divided by 673 is 2 with a remainder of 634.
Put 2 as the next digit of the answer. 
Result so far: 60605.742
If we subtract 1346 from 1980, we get 634.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6340, and continue the process.

On to step 12:
673 goes into 6340 9 times with a remainder of 283.
Use 9 as the next digit of our solution. 
Result so far: 60605.7429
Subtracting 6057 from 6340 leaves us with 283.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2830, and continue the process.

On to step 13:
673 can be fit into 2830 4 times, resulting in a remainder of 138.
The next digit of our result is 4. 
Result so far: 60605.74294
The remainder is 138 after subtracting 2692 from 2830.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1380, and continue the process.

Advancing to step 14:
1380 divided by 673 is 2 with a remainder of 34.
Write down 2 as next digit of the result. 
Result so far: 60605.742942
Deduct 1346 from 1380 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Advancing to step 15:
The number 673 fits into 340 0 times, leaving a remainder of 340.
Use 0 as the next digit of our solution. 
Result so far: 60605.742942
Subtracting 0 from 340 leaves us with 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3400, and continue the process.

Let's proceed to step 16:
673 can be fit into 3400 5 times, resulting in a remainder of 35.
Write down 5 as next digit of the result. 
Result so far: 60605.74294205
The remainder is 35 after subtracting 3365 from 3400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

After the division, we end up with 60605.74294205 and a remainder of 3.5e-08.