501997 ÷ 23 
We're looking to find how many times 23 goes into 501997.

Advancing to step 1:
If we divide 5 by 23, we get 0 and a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 23

On to step 2:
50 divided by 23 is 2 with a remainder of 4.
The next digit of our result is 2. 
Result so far: 2.0
Subtract 46 from 50 to get 4.
Take the next digit (1) from the dividend and append it to 4, then repeat: 41 / 23

On to step 3:
23 goes into 41 1 times with a remainder of 18.
Put 1 as the next digit of the answer. 
Result so far: 21.0
If we subtract 23 from 41, we get 18.
Include the next digit (9) from the dividend after 18, then repeat: 189 / 23

Step 4:
The number 23 fits into 189 8 times, leaving a remainder of 5.
Put 8 as the next digit of the answer. 
Result so far: 218.0
If we take 184 away from 189, we end up with 5.
Fetch the next digit (9) from the dividend, attach it to 5 and continue: 59 / 23

Step 5:
If we divide 59 by 23, we get 2 and a remainder of 13.
Write down 2 as next digit of the result. 
Result so far: 2182.0
Subtract 46 from 59 to get 13.
Include the next digit (7) from the dividend after 13, then repeat: 137 / 23

Advancing to step 6:
If we divide 137 by 23, we get 5 and a remainder of 22.
The next digit of our result is 5. 
Result so far: 21825.0
Deduct 115 from 137 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 7:
220 divided by 23 is 9 with a remainder of 13.
Put 9 as the next digit of the answer. 
Result so far: 21825.9
The remainder is 13 after subtracting 207 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Let's proceed to step 8:
23 can be fit into 130 5 times, resulting in a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 21825.95
Subtracting 115 from 130 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Advancing to step 9:
If we divide 150 by 23, we get 6 and a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 21825.956
Subtract 138 from 150 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 10:
23 goes into 120 5 times with a remainder of 5.
The next digit of our result is 5. 
Result so far: 21825.9565
If we take 115 away from 120, 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:
23 can be fit into 50 2 times, resulting in a remainder of 4.
The next digit of our result is 2. 
Result so far: 21825.95652
Subtracting 46 from 50 leaves us 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.

On to step 12:
The number 23 fits into 40 1 times, leaving a remainder of 17.
The next digit of our result is 1. 
Result so far: 21825.956521
Subtract 23 from 40 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 13:
170 divided by 23 is 7 with a remainder of 9.
The number 7 becomes the next digit in our result. 
Result so far: 21825.9565217
The remainder is 9 after subtracting 161 from 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 14:
When dividing 90 by 23, we get 3 with a remainder of 21.
Record the quotient 3 as the next digit in the result. 
Result so far: 21825.95652173
Subtracting 69 from 90 leaves us with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

In conclusion, the division gives 21825.95652173 with a balance of 2.1e-08.