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

Step 1:
3 divided by 24 is 0 with a remainder of 3.
Write down 0 as next digit of 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:
24 goes into 39 1 times with a remainder of 15.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 24 from 39 leaves us with 15.
Include the next digit (8) from the dividend after 15, then repeat: 158 / 24

Advancing to step 3:
24 can be fit into 158 6 times, resulting in a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 16.0
If we subtract 144 from 158, we get 14.
Bring next digit (0) of the dividend behind the 14 and repeat the process: 140 / 24

Let's proceed to step 4:
If we divide 140 by 24, we get 5 and a remainder of 20.
The number 5 becomes the next digit in our result. 
Result so far: 165.0
If we subtract 120 from 140, we get 20.
Fetch the next digit (5) from the dividend, attach it to 20 and continue: 205 / 24

Let's proceed to step 5:
If we divide 205 by 24, we get 8 and a remainder of 13.
The next digit of our result is 8. 
Result so far: 1658.0
Deduct 192 from 205 and we're left with 13.
Grab the next digit (9) from the dividend, add it to 13, then carry on: 139 / 24

Let's proceed to step 6:
24 can be fit into 139 5 times, resulting in a remainder of 19.
Use 5 as the next digit of our solution. 
Result so far: 16585.0
Subtracting 120 from 139 leaves us 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.

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: 16585.7
If we take 168 away from 190, we end up 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.

Going ahead 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: 16585.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.

Going ahead to step 9:
40 divided by 24 is 1 with a remainder of 16.
The next digit of our result is 1. 
Result so far: 16585.791
If we subtract 24 from 40, we 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.

Let's proceed to step 10:
160 divided by 24 is 6 with a remainder of 16.
Record the quotient 6 as the next digit in the result. 
Result so far: 16585.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.

On to step 11:
If we divide 160 by 24, we get 6 and a remainder of 16.
Use 6 as the next digit of our solution. 
Result so far: 16585.79166
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.

The final result is 16585.79166 with a remainder of 1.6e-05.