989837 divided by 38 
The aim is to understand the frequency of 38 in 989837.

On to step 1:
38 goes into 9 0 times with a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 9 and we're left with 9.
Take the next digit (8) from the dividend and append it to 9, then repeat: 98 / 38

Going ahead to step 2:
98 divided by 38 is 2 with a remainder of 22.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
If we take 76 away from 98, we end up with 22.
Append the next digit (9) from the dividend to 22 and continue with: 229 / 38

Advancing to step 3:
38 can be fit into 229 6 times, resulting in a remainder of 1.
Record the quotient 6 as the next digit in the result. 
Result so far: 26.0
If we take 228 away from 229, we end up with 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 38

Moving on to step 4:
18 divided by 38 is 0 with a remainder of 18.
Use 0 as the next digit of our solution. 
Result so far: 260.0
Subtracting 0 from 18 leaves us with 18.
Take the next digit (3) from the dividend and append it to 18, then repeat: 183 / 38

Going ahead to step 5:
If we divide 183 by 38, we get 4 and a remainder of 31.
Record the quotient 4 as the next digit in the result. 
Result so far: 2604.0
Subtracting 152 from 183 leaves us with 31.
Fetch the next digit (7) from the dividend, attach it to 31 and continue: 317 / 38

Advancing to step 6:
If we divide 317 by 38, we get 8 and a remainder of 13.
Use 8 as the next digit of our solution. 
Result so far: 26048.0
If we take 304 away from 317, we end up with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Let's proceed to step 7:
38 can be fit into 130 3 times, resulting in a remainder of 16.
Use 3 as the next digit of our solution. 
Result so far: 26048.3
Subtracting 114 from 130 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 8:
38 can be fit into 160 4 times, resulting in a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 26048.34
If we subtract 152 from 160, we get 8.
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 9:
If we divide 80 by 38, we get 2 and a remainder of 4.
The next digit of our result is 2. 
Result so far: 26048.342
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.

Going ahead to step 10:
The number 38 fits into 40 1 times, leaving a remainder of 2.
The next digit of our result is 1. 
Result so far: 26048.3421
Deduct 38 from 40 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 11:
When dividing 20 by 38, we get 0 with a remainder of 20.
The next digit of our result is 0. 
Result so far: 26048.3421
Subtracting 0 from 20 leaves us 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.

Let's proceed to step 12:
When dividing 200 by 38, we get 5 with a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 26048.342105
Subtract 190 from 200 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 13:
The number 38 fits into 100 2 times, leaving a remainder of 24.
Write down 2 as next digit of the result. 
Result so far: 26048.3421052
If we take 76 away from 100, we end up 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.

Moving on to step 14:
When dividing 240 by 38, we get 6 with a remainder of 12.
Put 6 as the next digit of the answer. 
Result so far: 26048.34210526
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.

The final outcome is 26048.34210526, with a leftover of 1.2e-08.