We look at the division of 585977 by 24 
The aim is to understand the frequency of 24 in 585977.

Step 1:
24 can be fit into 5 0 times, resulting in a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (8) from the dividend, add it to 5, then carry on: 58 / 24

Step 2:
58 divided by 24 is 2 with a remainder of 10.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtract 48 from 58 to get 10.
Include the next digit (5) from the dividend after 10, then repeat: 105 / 24

Step 3:
The number 24 fits into 105 4 times, leaving a remainder of 9.
The next digit of our result is 4. 
Result so far: 24.0
If we take 96 away from 105, we end up with 9.
Include the next digit (9) from the dividend after 9, then repeat: 99 / 24

Advancing to step 4:
When dividing 99 by 24, we get 4 with a remainder of 3.
Put 4 as the next digit of the answer. 
Result so far: 244.0
Subtracting 96 from 99 leaves us with 3.
Take the next digit (7) from the dividend and append it to 3, then repeat: 37 / 24

Step 5:
When dividing 37 by 24, we get 1 with a remainder of 13.
Write down 1 as next digit of the result. 
Result so far: 2441.0
If we subtract 24 from 37, we get 13.
Include the next digit (7) from the dividend after 13, then repeat: 137 / 24

Going ahead to step 6:
If we divide 137 by 24, we get 5 and a remainder of 17.
Record the quotient 5 as the next digit in the result. 
Result so far: 24415.0
The remainder is 17 after subtracting 120 from 137.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Moving on to step 7:
When dividing 170 by 24, we get 7 with a remainder of 2.
Use 7 as the next digit of our solution. 
Result so far: 24415.7
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.

On to step 8:
24 goes into 20 0 times with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 24415.7
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 9:
200 divided by 24 is 8 with a remainder of 8.
Write down 8 as next digit of the result. 
Result so far: 24415.708
Deduct 192 from 200 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 10:
The number 24 fits into 80 3 times, leaving a remainder of 8.
Put 3 as the next digit of the answer. 
Result so far: 24415.7083
If we subtract 72 from 80, we 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.

Moving on to step 11:
24 can be fit into 80 3 times, resulting in a remainder of 8.
The next digit of our result is 3. 
Result so far: 24415.70833
If we take 72 away from 80, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final result is 24415.70833 with a remainder of 8e-06.