Let's divide 2187 by 40
Our goal is to divide 2187 by 40.

Moving on to step 1:
The number 40 fits into 2 0 times, leaving a remainder of 2.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 2 and we're left with 2.
Grab the next digit (1) from the dividend, add it to 2, then carry on: 21 / 40

On to step 2:
The number 40 fits into 21 0 times, leaving a remainder of 21.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 21 to get 21.
Bring next digit (8) of the dividend behind the 21 and repeat the process: 218 / 40

Going ahead to step 3:
The number 40 fits into 218 5 times, leaving a remainder of 18.
Write down 5 as next digit of the result. 
Result so far: 5.0
Subtract 200 from 218 to get 18.
Bring next digit (7) of the dividend behind the 18 and repeat the process: 187 / 40

Step 4:
187 divided by 40 is 4 with a remainder of 27.
Write down 4 as next digit of the result. 
Result so far: 54.0
Deduct 160 from 187 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

On to step 5:
The number 40 fits into 270 6 times, leaving a remainder of 30.
Use 6 as the next digit of our solution. 
Result so far: 54.6
If we subtract 240 from 270, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 6:
40 can be fit into 300 7 times, resulting in a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 54.67
Deduct 280 from 300 and we're left 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 7:
40 goes into 200 5 times with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 54.675
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.

Going ahead to step 8:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 54.675
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.

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: 54.675
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 54.675 and a remainder of 0.0.