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

Step 1:
When dividing 5 by 24, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 24

Let's proceed to step 2:
24 goes into 51 2 times with a remainder of 3.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we subtract 48 from 51, we get 3.
Fetch the next digit (0) from the dividend, attach it to 3 and continue: 30 / 24

Advancing to step 3:
24 can be fit into 30 1 times, resulting in a remainder of 6.
Record the quotient 1 as the next digit in the result. 
Result so far: 21.0
Subtracting 24 from 30 leaves us with 6.
Grab the next digit (1) from the dividend, add it to 6, then carry on: 61 / 24

Moving on to step 4:
When dividing 61 by 24, we get 2 with a remainder of 13.
Put 2 as the next digit of the answer. 
Result so far: 212.0
Subtracting 48 from 61 leaves us with 13.
Take the next digit (9) from the dividend and append it to 13, then repeat: 139 / 24

Let's proceed to step 5:
If we divide 139 by 24, we get 5 and a remainder of 19.
Write down 5 as next digit of the result. 
Result so far: 2125.0
If we subtract 120 from 139, we get 19.
Include the next digit (7) from the dividend after 19, then repeat: 197 / 24

Moving on to step 6:
The number 24 fits into 197 8 times, leaving a remainder of 5.
Write down 8 as next digit of the result. 
Result so far: 21258.0
Deduct 192 from 197 and we're left 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.

On to step 7:
When dividing 50 by 24, we get 2 with a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 21258.2
If we take 48 away from 50, we end up with 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 8:
20 divided by 24 is 0 with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 21258.2
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.

Step 9:
200 divided by 24 is 8 with a remainder of 8.
Record the quotient 8 as the next digit in the result. 
Result so far: 21258.208
If we subtract 192 from 200, 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.

Advancing to step 10:
The number 24 fits into 80 3 times, leaving a remainder of 8.
Write down 3 as next digit of the result. 
Result so far: 21258.2083
Subtracting 72 from 80 leaves us 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.

Let's proceed to step 11:
The number 24 fits into 80 3 times, leaving a remainder of 8.
The next digit of our result is 3. 
Result so far: 21258.20833
Subtract 72 from 80 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.

After the division, we end up with 21258.20833 and a remainder of 8e-06.