21749564 divided by 40 
Let's see how many times 40 fits into 21749564.

Advancing to step 1:
If we divide 2 by 40, we get 0 and a remainder of 2.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Append the next digit (1) from the dividend to 2 and continue with: 21 / 40

Going ahead to step 2:
40 goes into 21 0 times with a remainder of 21.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 21, we get 21.
Take the next digit (7) from the dividend and append it to 21, then repeat: 217 / 40

Advancing to step 3:
40 can be fit into 217 5 times, resulting in a remainder of 17.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Deduct 200 from 217 and we're left with 17.
Take the next digit (4) from the dividend and append it to 17, then repeat: 174 / 40

Going ahead to step 4:
The number 40 fits into 174 4 times, leaving a remainder of 14.
Record the quotient 4 as the next digit in the result. 
Result so far: 54.0
If we subtract 160 from 174, we get 14.
Append the next digit (9) from the dividend to 14 and continue with: 149 / 40

Step 5:
149 divided by 40 is 3 with a remainder of 29.
Put 3 as the next digit of the answer. 
Result so far: 543.0
If we subtract 120 from 149, we get 29.
Grab the next digit (5) from the dividend, add it to 29, then carry on: 295 / 40

On to step 6:
The number 40 fits into 295 7 times, leaving a remainder of 15.
The next digit of our result is 7. 
Result so far: 5437.0
Subtract 280 from 295 to get 15.
Include the next digit (6) from the dividend after 15, then repeat: 156 / 40

Moving on to step 7:
40 goes into 156 3 times with a remainder of 36.
The number 3 becomes the next digit in our result. 
Result so far: 54373.0
If we subtract 120 from 156, we get 36.
Bring next digit (4) of the dividend behind the 36 and repeat the process: 364 / 40

On to step 8:
40 can be fit into 364 9 times, resulting in a remainder of 4.
The number 9 becomes the next digit in our result. 
Result so far: 543739.0
Deduct 360 from 364 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 9:
40 goes into 40 1 times with a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 543739.1
If we subtract 40 from 40, we get 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:
If we divide 0 by 40, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 543739.1
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.

Going ahead to step 11:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 543739.1
Subtracting 0 from 0 leaves us 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.

Our division results in 543739.1 with a remaining 0.0.