We look at the division of 20364 by 40 
Our goal is to divide 20364 by 40.

Step 1:
40 can be fit into 2 0 times, resulting in a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 2, we end up with 2.
Fetch the next digit (0) from the dividend, attach it to 2 and continue: 20 / 40

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

Moving on to step 3:
203 divided by 40 is 5 with a remainder of 3.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Deduct 200 from 203 and we're left with 3.
Grab the next digit (6) from the dividend, add it to 3, then carry on: 36 / 40

Going ahead to step 4:
If we divide 36 by 40, we get 0 and a remainder of 36.
The number 0 becomes the next digit in our result. 
Result so far: 50.0
Subtract 0 from 36 to get 36.
Fetch the next digit (4) from the dividend, attach it to 36 and continue: 364 / 40

On to step 5:
40 can be fit into 364 9 times, resulting in a remainder of 4.
Use 9 as the next digit of our solution. 
Result so far: 509.0
If we take 360 away from 364, we end up 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 6:
If we divide 40 by 40, we get 1 and a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 509.1
Subtracting 40 from 40 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 7:
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: 509.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.

On to step 8:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 509.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.

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