We look at the division of 867804 by 38 
The aim is to understand the frequency of 38 in 867804.

Moving on to step 1:
When dividing 8 by 38, we get 0 with a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Grab the next digit (6) from the dividend, add it to 8, then carry on: 86 / 38

Advancing to step 2:
86 divided by 38 is 2 with a remainder of 10.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtract 76 from 86 to get 10.
Fetch the next digit (7) from the dividend, attach it to 10 and continue: 107 / 38

Let's proceed to step 3:
107 divided by 38 is 2 with a remainder of 31.
The next digit of our result is 2. 
Result so far: 22.0
If we subtract 76 from 107, we get 31.
Include the next digit (8) from the dividend after 31, then repeat: 318 / 38

Step 4:
318 divided by 38 is 8 with a remainder of 14.
The number 8 becomes the next digit in our result. 
Result so far: 228.0
If we subtract 304 from 318, we get 14.
Append the next digit (0) from the dividend to 14 and continue with: 140 / 38

Step 5:
When dividing 140 by 38, we get 3 with a remainder of 26.
The number 3 becomes the next digit in our result. 
Result so far: 2283.0
Subtract 114 from 140 to get 26.
Take the next digit (4) from the dividend and append it to 26, then repeat: 264 / 38

On to step 6:
When dividing 264 by 38, we get 6 with a remainder of 36.
The number 6 becomes the next digit in our result. 
Result so far: 22836.0
The remainder is 36 after subtracting 228 from 264.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Advancing to step 7:
38 can be fit into 360 9 times, resulting in a remainder of 18.
Put 9 as the next digit of the answer. 
Result so far: 22836.9
If we subtract 342 from 360, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 8:
If we divide 180 by 38, we get 4 and a remainder of 28.
Record the quotient 4 as the next digit in the result. 
Result so far: 22836.94
If we take 152 away from 180, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 9:
280 divided by 38 is 7 with a remainder of 14.
The number 7 becomes the next digit in our result. 
Result so far: 22836.947
Subtract 266 from 280 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 10:
When dividing 140 by 38, we get 3 with a remainder of 26.
Use 3 as the next digit of our solution. 
Result so far: 22836.9473
If we subtract 114 from 140, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 11:
When dividing 260 by 38, we get 6 with a remainder of 32.
The next digit of our result is 6. 
Result so far: 22836.94736
Deduct 228 from 260 and we're left with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 12:
38 goes into 320 8 times with a remainder of 16.
Use 8 as the next digit of our solution. 
Result so far: 22836.947368
If we subtract 304 from 320, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 13:
38 goes into 160 4 times with a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 22836.9473684
The remainder is 8 after subtracting 152 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 14:
38 goes into 80 2 times with a remainder of 4.
The next digit of our result is 2. 
Result so far: 22836.94736842
Subtract 76 from 80 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The quotient of the division is 22836.94736842, and the remainder is 4e-09.