We look at the division of 512474 by 125 
The aim is to understand the frequency of 125 in 512474.

Going ahead to step 1:
The number 125 fits into 5 0 times, leaving a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 125

Let's proceed to step 2:
125 goes into 51 0 times with a remainder of 51.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 51, we end up with 51.
Fetch the next digit (2) from the dividend, attach it to 51 and continue: 512 / 125

Step 3:
The number 125 fits into 512 4 times, leaving a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Subtract 500 from 512 to get 12.
Bring next digit (4) of the dividend behind the 12 and repeat the process: 124 / 125

Advancing to step 4:
If we divide 124 by 125, we get 0 and a remainder of 124.
The next digit of our result is 0. 
Result so far: 40.0
Subtract 0 from 124 to get 124.
Include the next digit (7) from the dividend after 124, then repeat: 1247 / 125

Going ahead to step 5:
125 goes into 1247 9 times with a remainder of 122.
The number 9 becomes the next digit in our result. 
Result so far: 409.0
The remainder is 122 after subtracting 1125 from 1247.
Grab the next digit (4) from the dividend, add it to 122, then carry on: 1224 / 125

Moving on to step 6:
1224 divided by 125 is 9 with a remainder of 99.
Record the quotient 9 as the next digit in the result. 
Result so far: 4099.0
Subtracting 1125 from 1224 leaves us with 99.
Since there are no more digits in the dividend, we add a zero to the remainder making it 990, and continue the process.

Step 7:
If we divide 990 by 125, we get 7 and a remainder of 115.
The next digit of our result is 7. 
Result so far: 4099.7
If we take 875 away from 990, we end up with 115.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1150, and continue the process.

Advancing to step 8:
When dividing 1150 by 125, we get 9 with a remainder of 25.
The number 9 becomes the next digit in our result. 
Result so far: 4099.79
Subtracting 1125 from 1150 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 9:
125 can be fit into 250 2 times, resulting in a remainder of 0.
The number 2 becomes the next digit in our result. 
Result so far: 4099.792
Subtracting 250 from 250 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 10:
The number 125 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 4099.792
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 11:
125 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 4099.792
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 4099.792 with a balance of 0.0.