We divide 505823 by 21
We want to figure out the number of times 505823 can be divided by 21.

Let's proceed to step 1:
When dividing 5 by 21, we get 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 21

Step 2:
21 can be fit into 50 2 times, resulting in a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 2.0
The remainder is 8 after subtracting 42 from 50.
Fetch the next digit (5) from the dividend, attach it to 8 and continue: 85 / 21

Step 3:
85 divided by 21 is 4 with a remainder of 1.
The number 4 becomes the next digit in our result. 
Result so far: 24.0
If we take 84 away from 85, we end up with 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 21

Let's proceed to step 4:
If we divide 18 by 21, we get 0 and a remainder of 18.
Put 0 as the next digit of the answer. 
Result so far: 240.0
If we take 0 away from 18, we end up with 18.
Append the next digit (2) from the dividend to 18 and continue with: 182 / 21

Let's proceed to step 5:
When dividing 182 by 21, we get 8 with a remainder of 14.
Write down 8 as next digit of the result. 
Result so far: 2408.0
The remainder is 14 after subtracting 168 from 182.
Fetch the next digit (3) from the dividend, attach it to 14 and continue: 143 / 21

Moving on to step 6:
21 can be fit into 143 6 times, resulting in a remainder of 17.
Put 6 as the next digit of the answer. 
Result so far: 24086.0
Subtracting 126 from 143 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 7:
The number 21 fits into 170 8 times, leaving a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 24086.8
If we subtract 168 from 170, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 8:
21 goes into 20 0 times with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 24086.8
If we subtract 0 from 20, we 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 9:
21 can be fit into 200 9 times, resulting in a remainder of 11.
The number 9 becomes the next digit in our result. 
Result so far: 24086.809
If we take 189 away from 200, we end up 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.

Moving on to step 10:
110 divided by 21 is 5 with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 24086.8095
If we take 105 away from 110, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 11:
If we divide 50 by 21, we get 2 and a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 24086.80952
Subtract 42 from 50 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 12:
21 can be fit into 80 3 times, resulting in a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 24086.809523
Subtracting 63 from 80 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 13:
21 can be fit into 170 8 times, resulting in a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 24086.8095238
If we subtract 168 from 170, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 14:
If we divide 20 by 21, we get 0 and a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 24086.8095238
Subtract 0 from 20 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.

The final outcome is 24086.8095238, with a leftover of 2e-08.