We're dividing 40908427 by 642 
The aim is to understand the frequency of 642 in 40908427.

On to step 1:
642 can be fit into 4 0 times, resulting in a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 642

On to step 2:
The number 642 fits into 40 0 times, leaving a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Grab the next digit (9) from the dividend, add it to 40, then carry on: 409 / 642

Advancing to step 3:
When dividing 409 by 642, we get 0 with a remainder of 409.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 409 after subtracting 0 from 409.
Include the next digit (0) from the dividend after 409, then repeat: 4090 / 642

On to step 4:
When dividing 4090 by 642, we get 6 with a remainder of 238.
The number 6 becomes the next digit in our result. 
Result so far: 6.0
The remainder is 238 after subtracting 3852 from 4090.
Fetch the next digit (8) from the dividend, attach it to 238 and continue: 2388 / 642

Advancing to step 5:
The number 642 fits into 2388 3 times, leaving a remainder of 462.
The number 3 becomes the next digit in our result. 
Result so far: 63.0
Subtract 1926 from 2388 to get 462.
Bring next digit (4) of the dividend behind the 462 and repeat the process: 4624 / 642

Going ahead to step 6:
642 can be fit into 4624 7 times, resulting in a remainder of 130.
Use 7 as the next digit of our solution. 
Result so far: 637.0
Subtract 4494 from 4624 to get 130.
Fetch the next digit (2) from the dividend, attach it to 130 and continue: 1302 / 642

On to step 7:
When dividing 1302 by 642, we get 2 with a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 6372.0
The remainder is 18 after subtracting 1284 from 1302.
Bring next digit (7) of the dividend behind the 18 and repeat the process: 187 / 642

On to step 8:
If we divide 187 by 642, we get 0 and a remainder of 187.
Write down 0 as next digit of the result. 
Result so far: 63720.0
Subtracting 0 from 187 leaves us with 187.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1870, and continue the process.

Let's proceed to step 9:
The number 642 fits into 1870 2 times, leaving a remainder of 586.
Write down 2 as next digit of the result. 
Result so far: 63720.2
Deduct 1284 from 1870 and we're left with 586.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5860, and continue the process.

Let's proceed to step 10:
The number 642 fits into 5860 9 times, leaving a remainder of 82.
The next digit of our result is 9. 
Result so far: 63720.29
Deduct 5778 from 5860 and we're left with 82.
Since there are no more digits in the dividend, we add a zero to the remainder making it 820, and continue the process.

Moving on to step 11:
820 divided by 642 is 1 with a remainder of 178.
The next digit of our result is 1. 
Result so far: 63720.291
Subtracting 642 from 820 leaves us with 178.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1780, and continue the process.

Let's proceed to step 12:
If we divide 1780 by 642, we get 2 and a remainder of 496.
Use 2 as the next digit of our solution. 
Result so far: 63720.2912
Subtract 1284 from 1780 to get 496.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4960, and continue the process.

Going ahead to step 13:
642 goes into 4960 7 times with a remainder of 466.
Use 7 as the next digit of our solution. 
Result so far: 63720.29127
If we take 4494 away from 4960, we end up with 466.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4660, and continue the process.

On to step 14:
4660 divided by 642 is 7 with a remainder of 166.
Put 7 as the next digit of the answer. 
Result so far: 63720.291277
The remainder is 166 after subtracting 4494 from 4660.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1660, and continue the process.

The quotient of the division is 63720.291277, and the remainder is 1.66e-05.