We divide 504316 by 24
We want to figure out the number of times 504316 can be divided by 24.

Step 1:
The number 24 fits into 5 0 times, leaving a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 24

Moving on to step 2:
If we divide 50 by 24, we get 2 and a remainder of 2.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtracting 48 from 50 leaves us with 2.
Fetch the next digit (4) from the dividend, attach it to 2 and continue: 24 / 24

Advancing to step 3:
If we divide 24 by 24, we get 1 and a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 21.0
Subtract 24 from 24 to get 0.
Bring next digit (3) of the dividend behind the 0 and repeat the process: 3 / 24

Let's proceed to step 4:
24 can be fit into 3 0 times, resulting in a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 210.0
Subtract 0 from 3 to get 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 24

Let's proceed to step 5:
31 divided by 24 is 1 with a remainder of 7.
The number 1 becomes the next digit in our result. 
Result so far: 2101.0
If we take 24 away from 31, we end up with 7.
Fetch the next digit (6) from the dividend, attach it to 7 and continue: 76 / 24

Advancing to step 6:
When dividing 76 by 24, we get 3 with a remainder of 4.
Use 3 as the next digit of our solution. 
Result so far: 21013.0
If we take 72 away from 76, 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 7:
If we divide 40 by 24, we get 1 and a remainder of 16.
The next digit of our result is 1. 
Result so far: 21013.1
Deduct 24 from 40 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 8:
24 can be fit into 160 6 times, resulting in a remainder of 16.
The number 6 becomes the next digit in our result. 
Result so far: 21013.16
If we subtract 144 from 160, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 9:
If we divide 160 by 24, we get 6 and a remainder of 16.
Put 6 as the next digit of the answer. 
Result so far: 21013.166
If we subtract 144 from 160, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

The final outcome is 21013.166, with a leftover of 0.0016.