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

Let's proceed to step 1:
40 goes into 2 0 times with a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Fetch the next digit (1) from the dividend, attach it to 2 and continue: 21 / 40

Let's proceed to step 2:
40 can be fit into 21 0 times, resulting in a remainder of 21.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 21, we get 21.
Grab the next digit (5) from the dividend, add it to 21, then carry on: 215 / 40

Going ahead to step 3:
When dividing 215 by 40, we get 5 with a remainder of 15.
The next digit of our result is 5. 
Result so far: 5.0
Subtracting 200 from 215 leaves us with 15.
Append the next digit (7) from the dividend to 15 and continue with: 157 / 40

Moving on to step 4:
157 divided by 40 is 3 with a remainder of 37.
The number 3 becomes the next digit in our result. 
Result so far: 53.0
The remainder is 37 after subtracting 120 from 157.
Bring next digit (1) of the dividend behind the 37 and repeat the process: 371 / 40

Going ahead to step 5:
40 goes into 371 9 times with a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 539.0
Subtracting 360 from 371 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 6:
If we divide 110 by 40, we get 2 and a remainder of 30.
The number 2 becomes the next digit in our result. 
Result so far: 539.2
Deduct 80 from 110 and we're left 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.

Going ahead to step 7:
When dividing 300 by 40, we get 7 with a remainder of 20.
Write down 7 as next digit of the result. 
Result so far: 539.27
Subtract 280 from 300 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 8:
The number 40 fits into 200 5 times, leaving a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 539.275
If we subtract 200 from 200, 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.

Advancing to step 9:
If we divide 0 by 40, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 539.275
Deduct 0 from 0 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:
0 divided by 40 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 539.275
Deduct 0 from 0 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.

The quotient of the division is 539.275, and the remainder is 0.0.