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

On to step 1:
If we divide 5 by 24, we get 0 and a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 24

Let's proceed to step 2:
If we divide 50 by 24, we get 2 and a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtracting 48 from 50 leaves us with 2.
Include the next digit (7) from the dividend after 2, then repeat: 27 / 24

Going ahead to step 3:
27 divided by 24 is 1 with a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 21.0
Subtracting 24 from 27 leaves us with 3.
Include the next digit (7) from the dividend after 3, then repeat: 37 / 24

Advancing to step 4:
24 can be fit into 37 1 times, resulting in a remainder of 13.
The number 1 becomes the next digit in our result. 
Result so far: 211.0
If we subtract 24 from 37, we get 13.
Append the next digit (2) from the dividend to 13 and continue with: 132 / 24

On to step 5:
24 goes into 132 5 times with a remainder of 12.
The next digit of our result is 5. 
Result so far: 2115.0
Subtract 120 from 132 to get 12.
Grab the next digit (7) from the dividend, add it to 12, then carry on: 127 / 24

Step 6:
The number 24 fits into 127 5 times, leaving a remainder of 7.
Write down 5 as next digit of the result. 
Result so far: 21155.0
Subtracting 120 from 127 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 7:
24 can be fit into 70 2 times, resulting in a remainder of 22.
Write down 2 as next digit of the result. 
Result so far: 21155.2
Deduct 48 from 70 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:
24 can be fit into 220 9 times, resulting in a remainder of 4.
The next digit of our result is 9. 
Result so far: 21155.29
Subtracting 216 from 220 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.

Advancing to step 9:
The number 24 fits into 40 1 times, leaving a remainder of 16.
Use 1 as the next digit of our solution. 
Result so far: 21155.291
If we take 24 away from 40, 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.

Moving on to step 10:
If we divide 160 by 24, we get 6 and a remainder of 16.
The number 6 becomes the next digit in our result. 
Result so far: 21155.2916
The remainder is 16 after subtracting 144 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

On to step 11:
160 divided by 24 is 6 with a remainder of 16.
Write down 6 as next digit of the result. 
Result so far: 21155.29166
Subtract 144 from 160 to 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.

After the division, we end up with 21155.29166 and a remainder of 1.6e-05.