We divide 501564 by 24
Our goal is to divide 501564 by 24.

Moving on to step 1:
If we divide 5 by 24, we get 0 and a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 24

Let's proceed to step 2:
When dividing 50 by 24, we get 2 with a remainder of 2.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 48 away from 50, we end up with 2.
Fetch the next digit (1) from the dividend, attach it to 2 and continue: 21 / 24

Advancing to step 3:
The number 24 fits into 21 0 times, leaving a remainder of 21.
Write down 0 as next digit of the result. 
Result so far: 20.0
If we subtract 0 from 21, we get 21.
Take the next digit (5) from the dividend and append it to 21, then repeat: 215 / 24

Step 4:
215 divided by 24 is 8 with a remainder of 23.
Write down 8 as next digit of the result. 
Result so far: 208.0
Subtract 192 from 215 to get 23.
Fetch the next digit (6) from the dividend, attach it to 23 and continue: 236 / 24

On to step 5:
If we divide 236 by 24, we get 9 and a remainder of 20.
The next digit of our result is 9. 
Result so far: 2089.0
The remainder is 20 after subtracting 216 from 236.
Include the next digit (4) from the dividend after 20, then repeat: 204 / 24

Going ahead to step 6:
24 goes into 204 8 times with a remainder of 12.
The next digit of our result is 8. 
Result so far: 20898.0
Subtracting 192 from 204 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 7:
120 divided by 24 is 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 20898.5
Subtracting 120 from 120 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 8:
The number 24 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 20898.5
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.

Advancing to step 9:
24 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 20898.5
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.

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