We divide 387477 by 18
The aim is to understand the frequency of 18 in 387477.

Advancing to step 1:
The number 18 fits into 3 0 times, leaving a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Bring next digit (8) of the dividend behind the 3 and repeat the process: 38 / 18

Step 2:
When dividing 38 by 18, we get 2 with a remainder of 2.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtract 36 from 38 to get 2.
Take the next digit (7) from the dividend and append it to 2, then repeat: 27 / 18

Let's proceed to step 3:
The number 18 fits into 27 1 times, leaving a remainder of 9.
The next digit of our result is 1. 
Result so far: 21.0
Subtract 18 from 27 to get 9.
Grab the next digit (4) from the dividend, add it to 9, then carry on: 94 / 18

Advancing to step 4:
When dividing 94 by 18, we get 5 with a remainder of 4.
The next digit of our result is 5. 
Result so far: 215.0
Deduct 90 from 94 and we're left with 4.
Include the next digit (7) from the dividend after 4, then repeat: 47 / 18

Let's proceed to step 5:
When dividing 47 by 18, we get 2 with a remainder of 11.
Use 2 as the next digit of our solution. 
Result so far: 2152.0
If we take 36 away from 47, we end up with 11.
Grab the next digit (7) from the dividend, add it to 11, then carry on: 117 / 18

Moving on to step 6:
When dividing 117 by 18, we get 6 with a remainder of 9.
Use 6 as the next digit of our solution. 
Result so far: 21526.0
Subtract 108 from 117 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 7:
90 divided by 18 is 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 21526.5
Deduct 90 from 90 and we're left 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.

Moving on to step 8:
0 divided by 18 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 21526.5
Subtract 0 from 0 to 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.

Let's proceed to step 9:
18 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 21526.5
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.

The final outcome is 21526.5, with a leftover of 0.0.