Let's divide 508891 by 24
The aim is to understand the frequency of 24 in 508891.

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.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 24

On to step 2:
24 can be fit into 50 2 times, resulting in a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 2.0
Deduct 48 from 50 and we're left with 2.
Bring next digit (8) of the dividend behind the 2 and repeat the process: 28 / 24

Moving on to step 3:
The number 24 fits into 28 1 times, leaving a remainder of 4.
The number 1 becomes the next digit in our result. 
Result so far: 21.0
Subtracting 24 from 28 leaves us with 4.
Grab the next digit (8) from the dividend, add it to 4, then carry on: 48 / 24

Step 4:
When dividing 48 by 24, we get 2 with a remainder of 0.
Use 2 as the next digit of our solution. 
Result so far: 212.0
If we subtract 48 from 48, we get 0.
Grab the next digit (9) from the dividend, add it to 0, then carry on: 9 / 24

Going ahead to step 5:
9 divided by 24 is 0 with a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 2120.0
The remainder is 9 after subtracting 0 from 9.
Append the next digit (1) from the dividend to 9 and continue with: 91 / 24

Step 6:
24 can be fit into 91 3 times, resulting in a remainder of 19.
Use 3 as the next digit of our solution. 
Result so far: 21203.0
The remainder is 19 after subtracting 72 from 91.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 7:
190 divided by 24 is 7 with a remainder of 22.
The number 7 becomes the next digit in our result. 
Result so far: 21203.7
Deduct 168 from 190 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.

On to step 8:
The number 24 fits into 220 9 times, leaving a remainder of 4.
The number 9 becomes the next digit in our result. 
Result so far: 21203.79
Subtract 216 from 220 to get 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 9:
24 can be fit into 40 1 times, resulting in a remainder of 16.
Write down 1 as next digit of the result. 
Result so far: 21203.791
The remainder is 16 after subtracting 24 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 10:
The number 24 fits into 160 6 times, leaving a remainder of 16.
The next digit of our result is 6. 
Result so far: 21203.7916
If we take 144 away from 160, we end up 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.

Let's proceed to step 11:
If we divide 160 by 24, we get 6 and a remainder of 16.
Write down 6 as next digit of the result. 
Result so far: 21203.79166
If we take 144 away from 160, we end up 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.

The final outcome is 21203.79166, with a leftover of 1.6e-05.