18586 ÷ 38 
The aim is to understand the frequency of 38 in 18586.

Going ahead to step 1:
If we divide 1 by 38, we get 0 and a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 38

Moving on to step 2:
38 can be fit into 18 0 times, resulting in a remainder of 18.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 18 after subtracting 0 from 18.
Fetch the next digit (5) from the dividend, attach it to 18 and continue: 185 / 38

Advancing to step 3:
38 can be fit into 185 4 times, resulting in a remainder of 33.
Write down 4 as next digit of the result. 
Result so far: 4.0
Subtract 152 from 185 to get 33.
Append the next digit (8) from the dividend to 33 and continue with: 338 / 38

Advancing to step 4:
If we divide 338 by 38, we get 8 and a remainder of 34.
Put 8 as the next digit of the answer. 
Result so far: 48.0
The remainder is 34 after subtracting 304 from 338.
Fetch the next digit (6) from the dividend, attach it to 34 and continue: 346 / 38

Let's proceed to step 5:
38 goes into 346 9 times with a remainder of 4.
Use 9 as the next digit of our solution. 
Result so far: 489.0
Deduct 342 from 346 and we're left 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.

On to step 6:
38 can be fit into 40 1 times, resulting in a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 489.1
The remainder is 2 after subtracting 38 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 7:
38 can be fit into 20 0 times, resulting in a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 489.1
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 8:
38 goes into 200 5 times with a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 489.105
Deduct 190 from 200 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.

Moving on to step 9:
100 divided by 38 is 2 with a remainder of 24.
Put 2 as the next digit of the answer. 
Result so far: 489.1052
Subtracting 76 from 100 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 10:
38 can be fit into 240 6 times, resulting in a remainder of 12.
The next digit of our result is 6. 
Result so far: 489.10526
Deduct 228 from 240 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 11:
When dividing 120 by 38, we get 3 with a remainder of 6.
The number 3 becomes the next digit in our result. 
Result so far: 489.105263
Deduct 114 from 120 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 12:
38 goes into 60 1 times with a remainder of 22.
Use 1 as the next digit of our solution. 
Result so far: 489.1052631
The remainder is 22 after subtracting 38 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 13:
If we divide 220 by 38, we get 5 and a remainder of 30.
Use 5 as the next digit of our solution. 
Result so far: 489.10526315
Subtracting 190 from 220 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

The final outcome is 489.10526315, with a leftover of 3e-08.