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

Step 1:
If we divide 3 by 38, we get 0 and a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Include the next digit (8) from the dividend after 3, then repeat: 38 / 38

Going ahead to step 2:
If we divide 38 by 38, we get 1 and a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 38 from 38 and we're left with 0.
Bring next digit (9) of the dividend behind the 0 and repeat the process: 9 / 38

Advancing to step 3:
38 can be fit into 9 0 times, resulting in a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
The remainder is 9 after subtracting 0 from 9.
Include the next digit (9) from the dividend after 9, then repeat: 99 / 38

Going ahead to step 4:
99 divided by 38 is 2 with a remainder of 23.
The number 2 becomes the next digit in our result. 
Result so far: 102.0
Subtracting 76 from 99 leaves us with 23.
Fetch the next digit (8) from the dividend, attach it to 23 and continue: 238 / 38

Moving on to step 5:
38 goes into 238 6 times with a remainder of 10.
Write down 6 as next digit of the result. 
Result so far: 1026.0
Subtract 228 from 238 to get 10.
Bring next digit (7) of the dividend behind the 10 and repeat the process: 107 / 38

Step 6:
38 goes into 107 2 times with a remainder of 31.
The next digit of our result is 2. 
Result so far: 10262.0
The remainder is 31 after subtracting 76 from 107.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Going ahead to step 7:
38 goes into 310 8 times with a remainder of 6.
The number 8 becomes the next digit in our result. 
Result so far: 10262.8
The remainder is 6 after subtracting 304 from 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 8:
When dividing 60 by 38, we get 1 with a remainder of 22.
The number 1 becomes the next digit in our result. 
Result so far: 10262.81
If we subtract 38 from 60, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 9:
When dividing 220 by 38, we get 5 with a remainder of 30.
Write down 5 as next digit of the result. 
Result so far: 10262.815
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.

Let's proceed to step 10:
The number 38 fits into 300 7 times, leaving a remainder of 34.
The next digit of our result is 7. 
Result so far: 10262.8157
If we take 266 away from 300, we end up 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.

On to step 11:
When dividing 340 by 38, we get 8 with a remainder of 36.
Record the quotient 8 as the next digit in the result. 
Result so far: 10262.81578
Subtract 304 from 340 to get 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 12:
360 divided by 38 is 9 with a remainder of 18.
Use 9 as the next digit of our solution. 
Result so far: 10262.815789
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.

Going ahead to step 13:
38 can be fit into 180 4 times, resulting in a remainder of 28.
Record the quotient 4 as the next digit in the result. 
Result so far: 10262.8157894
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.

Advancing to step 14:
38 goes into 280 7 times with a remainder of 14.
Put 7 as the next digit of the answer. 
Result so far: 10262.81578947
Subtracting 266 from 280 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

The quotient of the division is 10262.81578947, and the remainder is 1.4e-08.