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

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.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 24

Let's proceed to step 2:
51 divided by 24 is 2 with a remainder of 3.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we take 48 away from 51, we end up with 3.
Include the next digit (2) from the dividend after 3, then repeat: 32 / 24

Step 3:
When dividing 32 by 24, we get 1 with a remainder of 8.
The next digit of our result is 1. 
Result so far: 21.0
Deduct 24 from 32 and we're left with 8.
Take the next digit (3) from the dividend and append it to 8, then repeat: 83 / 24

Going ahead to step 4:
83 divided by 24 is 3 with a remainder of 11.
Record the quotient 3 as the next digit in the result. 
Result so far: 213.0
If we take 72 away from 83, we end up with 11.
Append the next digit (2) from the dividend to 11 and continue with: 112 / 24

Advancing to step 5:
When dividing 112 by 24, we get 4 with a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 2134.0
Subtract 96 from 112 to get 16.
Fetch the next digit (1) from the dividend, attach it to 16 and continue: 161 / 24

Step 6:
24 goes into 161 6 times with a remainder of 17.
The number 6 becomes the next digit in our result. 
Result so far: 21346.0
Subtracting 144 from 161 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 7:
The number 24 fits into 170 7 times, leaving a remainder of 2.
Put 7 as the next digit of the answer. 
Result so far: 21346.7
Subtract 168 from 170 to 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 can be fit into 20 0 times, resulting in a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 21346.7
If we take 0 away from 20, we end up 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.

Step 9:
24 can be fit into 200 8 times, resulting in a remainder of 8.
Record the quotient 8 as the next digit in the result. 
Result so far: 21346.708
If we take 192 away from 200, 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.

Moving on to step 10:
24 goes into 80 3 times with a remainder of 8.
The number 3 becomes the next digit in our result. 
Result so far: 21346.7083
Deduct 72 from 80 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.

Step 11:
If we divide 80 by 24, we get 3 and a remainder of 8.
Write down 3 as next digit of the result. 
Result so far: 21346.70833
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.

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