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

On to step 1:
If we divide 3 by 24, we get 0 and a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Fetch the next digit (9) from the dividend, attach it to 3 and continue: 39 / 24

Let's proceed to step 2:
If we divide 39 by 24, we get 1 and a remainder of 15.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 24 away from 39, we end up with 15.
Include the next digit (6) from the dividend after 15, then repeat: 156 / 24

Moving on to step 3:
156 divided by 24 is 6 with a remainder of 12.
Put 6 as the next digit of the answer. 
Result so far: 16.0
If we take 144 away from 156, we end up with 12.
Take the next digit (6) from the dividend and append it to 12, then repeat: 126 / 24

Step 4:
If we divide 126 by 24, we get 5 and a remainder of 6.
Use 5 as the next digit of our solution. 
Result so far: 165.0
Subtracting 120 from 126 leaves us with 6.
Grab the next digit (6) from the dividend, add it to 6, then carry on: 66 / 24

On to step 5:
When dividing 66 by 24, we get 2 with a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 1652.0
Subtracting 48 from 66 leaves us with 18.
Append the next digit (7) from the dividend to 18 and continue with: 187 / 24

On to step 6:
24 can be fit into 187 7 times, resulting in a remainder of 19.
Write down 7 as next digit of the result. 
Result so far: 16527.0
Deduct 168 from 187 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 7:
24 goes into 190 7 times with a remainder of 22.
Write down 7 as next digit of the result. 
Result so far: 16527.7
The remainder is 22 after subtracting 168 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving 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: 16527.79
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.

Let's proceed to step 9:
If we divide 40 by 24, we get 1 and a remainder of 16.
The next digit of our result is 1. 
Result so far: 16527.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.

Going ahead to step 10:
When dividing 160 by 24, we get 6 with a remainder of 16.
The number 6 becomes the next digit in our result. 
Result so far: 16527.7916
Subtracting 144 from 160 leaves us 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:
24 goes into 160 6 times with a remainder of 16.
The number 6 becomes the next digit in our result. 
Result so far: 16527.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 result is 16527.79166 with a remainder of 1.6e-05.