Let's divide 501766 by 30
The aim is to understand the frequency of 30 in 501766.

On to step 1:
The number 30 fits into 5 0 times, leaving a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 30

Let's proceed to step 2:
If we divide 50 by 30, we get 1 and a remainder of 20.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 30 from 50 to get 20.
Append the next digit (1) from the dividend to 20 and continue with: 201 / 30

Moving on to step 3:
If we divide 201 by 30, we get 6 and a remainder of 21.
Put 6 as the next digit of the answer. 
Result so far: 16.0
Subtracting 180 from 201 leaves us with 21.
Take the next digit (7) from the dividend and append it to 21, then repeat: 217 / 30

Step 4:
217 divided by 30 is 7 with a remainder of 7.
Write down 7 as next digit of the result. 
Result so far: 167.0
Deduct 210 from 217 and we're left with 7.
Take the next digit (6) from the dividend and append it to 7, then repeat: 76 / 30

Going ahead to step 5:
If we divide 76 by 30, we get 2 and a remainder of 16.
Use 2 as the next digit of our solution. 
Result so far: 1672.0
Subtract 60 from 76 to get 16.
Fetch the next digit (6) from the dividend, attach it to 16 and continue: 166 / 30

Step 6:
When dividing 166 by 30, we get 5 with a remainder of 16.
Record the quotient 5 as the next digit in the result. 
Result so far: 16725.0
The remainder is 16 after subtracting 150 from 166.
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 7:
The number 30 fits into 160 5 times, leaving a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 16725.5
Deduct 150 from 160 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 8:
30 can be fit into 100 3 times, resulting in a remainder of 10.
Use 3 as the next digit of our solution. 
Result so far: 16725.53
Subtract 90 from 100 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 9:
30 goes into 100 3 times with a remainder of 10.
The next digit of our result is 3. 
Result so far: 16725.533
Subtract 90 from 100 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Our division results in 16725.533 with a remaining 0.001.