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

Moving on to step 1:
38 can be fit into 9 0 times, resulting in a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Fetch the next digit (8) from the dividend, attach it to 9 and continue: 98 / 38

Moving on to step 2:
When dividing 98 by 38, we get 2 with a remainder of 22.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we subtract 76 from 98, we get 22.
Take the next digit (1) from the dividend and append it to 22, then repeat: 221 / 38

Step 3:
38 can be fit into 221 5 times, resulting in a remainder of 31.
The next digit of our result is 5. 
Result so far: 25.0
Subtract 190 from 221 to get 31.
Bring next digit (5) of the dividend behind the 31 and repeat the process: 315 / 38

Advancing to step 4:
The number 38 fits into 315 8 times, leaving a remainder of 11.
The next digit of our result is 8. 
Result so far: 258.0
If we subtract 304 from 315, we get 11.
Grab the next digit (8) from the dividend, add it to 11, then carry on: 118 / 38

Going ahead to step 5:
The number 38 fits into 118 3 times, leaving a remainder of 4.
The next digit of our result is 3. 
Result so far: 2583.0
If we take 114 away from 118, we end up with 4.
Fetch the next digit (2) from the dividend, attach it to 4 and continue: 42 / 38

Going ahead to step 6:
The number 38 fits into 42 1 times, leaving a remainder of 4.
The number 1 becomes the next digit in our result. 
Result so far: 25831.0
The remainder is 4 after subtracting 38 from 42.
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 7:
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: 25831.1
Subtracting 38 from 40 leaves us 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.

Going ahead to step 8:
38 goes into 20 0 times with a remainder of 20.
The next digit of our result is 0. 
Result so far: 25831.1
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 9:
38 goes into 200 5 times with a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 25831.105
If we subtract 190 from 200, we 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.

On to step 10:
The number 38 fits into 100 2 times, leaving a remainder of 24.
The number 2 becomes the next digit in our result. 
Result so far: 25831.1052
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.

Step 11:
240 divided by 38 is 6 with a remainder of 12.
The next digit of our result is 6. 
Result so far: 25831.10526
Subtracting 228 from 240 leaves us 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.

Moving on to step 12:
38 can be fit into 120 3 times, resulting in a remainder of 6.
The number 3 becomes the next digit in our result. 
Result so far: 25831.105263
If we subtract 114 from 120, we get 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 13:
60 divided by 38 is 1 with a remainder of 22.
Use 1 as the next digit of our solution. 
Result so far: 25831.1052631
If we take 38 away from 60, we end up 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 14:
When dividing 220 by 38, we get 5 with a remainder of 30.
The next digit of our result is 5. 
Result so far: 25831.10526315
Subtract 190 from 220 to get 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 25831.10526315, with a leftover of 3e-08.