Let's divide 642056 by 40
The aim is to understand the frequency of 40 in 642056.

On to step 1:
If we divide 6 by 40, we get 0 and a remainder of 6.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 6 leaves us with 6.
Take the next digit (4) from the dividend and append it to 6, then repeat: 64 / 40

Let's proceed to step 2:
The number 40 fits into 64 1 times, leaving a remainder of 24.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 40 from 64 and we're left with 24.
Grab the next digit (2) from the dividend, add it to 24, then carry on: 242 / 40

Going ahead to step 3:
If we divide 242 by 40, we get 6 and a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 16.0
If we subtract 240 from 242, we get 2.
Fetch the next digit (0) from the dividend, attach it to 2 and continue: 20 / 40

Going ahead to step 4:
40 can be fit into 20 0 times, resulting in a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 160.0
Deduct 0 from 20 and we're left with 20.
Include the next digit (5) from the dividend after 20, then repeat: 205 / 40

Moving on to step 5:
205 divided by 40 is 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 1605.0
Deduct 200 from 205 and we're left with 5.
Bring next digit (6) of the dividend behind the 5 and repeat the process: 56 / 40

Step 6:
If we divide 56 by 40, we get 1 and a remainder of 16.
The next digit of our result is 1. 
Result so far: 16051.0
Subtracting 40 from 56 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 7:
The number 40 fits into 160 4 times, leaving a remainder of 0.
Use 4 as the next digit of our solution. 
Result so far: 16051.4
The remainder is 0 after subtracting 160 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 8:
0 divided by 40 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 16051.4
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 9:
0 divided by 40 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 16051.4
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 16051.4 with a balance of 0.0.