We're dividing 305164 by 38 
The aim is to understand the frequency of 38 in 305164.

Moving on to step 1:
38 can be fit into 3 0 times, resulting in a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (0) from the dividend, add it to 3, then carry on: 30 / 38

Moving on to step 2:
38 can be fit into 30 0 times, resulting in a remainder of 30.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 30 leaves us with 30.
Include the next digit (5) from the dividend after 30, then repeat: 305 / 38

Let's proceed to step 3:
305 divided by 38 is 8 with a remainder of 1.
The next digit of our result is 8. 
Result so far: 8.0
If we take 304 away from 305, we end up with 1.
Grab the next digit (1) from the dividend, add it to 1, then carry on: 11 / 38

Going ahead to step 4:
If we divide 11 by 38, we get 0 and a remainder of 11.
Put 0 as the next digit of the answer. 
Result so far: 80.0
Deduct 0 from 11 and we're left with 11.
Fetch the next digit (6) from the dividend, attach it to 11 and continue: 116 / 38

Going ahead to step 5:
38 goes into 116 3 times with a remainder of 2.
The next digit of our result is 3. 
Result so far: 803.0
The remainder is 2 after subtracting 114 from 116.
Bring next digit (4) of the dividend behind the 2 and repeat the process: 24 / 38

On to step 6:
38 can be fit into 24 0 times, resulting in a remainder of 24.
Use 0 as the next digit of our solution. 
Result so far: 8030.0
Subtracting 0 from 24 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.

Advancing to step 7:
38 goes into 240 6 times with a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 8030.6
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 8:
120 divided by 38 is 3 with a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 8030.63
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.

Let's proceed to step 9:
The number 38 fits into 60 1 times, leaving a remainder of 22.
Write down 1 as next digit of the result. 
Result so far: 8030.631
Subtracting 38 from 60 leaves us 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 10:
38 goes into 220 5 times with a remainder of 30.
Write down 5 as next digit of the result. 
Result so far: 8030.6315
The remainder is 30 after subtracting 190 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 11:
38 goes into 300 7 times with a remainder of 34.
The next digit of our result is 7. 
Result so far: 8030.63157
Subtracting 266 from 300 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Moving on to step 12:
38 can be fit into 340 8 times, resulting in a remainder of 36.
The next digit of our result is 8. 
Result so far: 8030.631578
Subtracting 304 from 340 leaves us with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Moving on to step 13:
When dividing 360 by 38, we get 9 with a remainder of 18.
Put 9 as the next digit of the answer. 
Result so far: 8030.6315789
If we take 342 away from 360, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Moving on to step 14:
180 divided by 38 is 4 with a remainder of 28.
Record the quotient 4 as the next digit in the result. 
Result so far: 8030.63157894
The remainder is 28 after subtracting 152 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

The final outcome is 8030.63157894, with a leftover of 2.8e-08.