Let's divide 642579 by 40
We want to figure out the number of times 642579 can be divided by 40.

Let's proceed to step 1:
40 can be fit into 6 0 times, resulting in a remainder of 6.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 6 to get 6.
Grab the next digit (4) from the dividend, add it to 6, then carry on: 64 / 40

Advancing to step 2:
The number 40 fits into 64 1 times, leaving a remainder of 24.
The next digit of our result is 1. 
Result so far: 1.0
If we take 40 away from 64, we end up with 24.
Bring next digit (2) of the dividend behind the 24 and repeat the process: 242 / 40

Step 3:
40 can be fit into 242 6 times, resulting in a remainder of 2.
Write down 6 as next digit of the result. 
Result so far: 16.0
Deduct 240 from 242 and we're left with 2.
Append the next digit (5) from the dividend to 2 and continue with: 25 / 40

Going ahead to step 4:
If we divide 25 by 40, we get 0 and a remainder of 25.
The next digit of our result is 0. 
Result so far: 160.0
Subtracting 0 from 25 leaves us with 25.
Append the next digit (7) from the dividend to 25 and continue with: 257 / 40

On to step 5:
The number 40 fits into 257 6 times, leaving a remainder of 17.
Put 6 as the next digit of the answer. 
Result so far: 1606.0
If we subtract 240 from 257, we get 17.
Grab the next digit (9) from the dividend, add it to 17, then carry on: 179 / 40

Going ahead to step 6:
The number 40 fits into 179 4 times, leaving a remainder of 19.
Record the quotient 4 as the next digit in the result. 
Result so far: 16064.0
If we take 160 away from 179, we end up with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 7:
The number 40 fits into 190 4 times, leaving a remainder of 30.
Write down 4 as next digit of the result. 
Result so far: 16064.4
Subtracting 160 from 190 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 8:
40 goes into 300 7 times with a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 16064.47
If we take 280 away from 300, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 9:
If we divide 200 by 40, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 16064.475
Deduct 200 from 200 and we're left 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.

Let's proceed to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 16064.475
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 11:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 16064.475
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 16064.475 and a remainder of 0.0.