We're dividing 9138757 by 158 
The aim is to understand the frequency of 158 in 9138757.

Advancing to step 1:
158 goes into 9 0 times with a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 9 and we're left with 9.
Take the next digit (1) from the dividend and append it to 9, then repeat: 91 / 158

On to step 2:
When dividing 91 by 158, we get 0 with a remainder of 91.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 91, we end up with 91.
Grab the next digit (3) from the dividend, add it to 91, then carry on: 913 / 158

Advancing to step 3:
913 divided by 158 is 5 with a remainder of 123.
Write down 5 as next digit of the result. 
Result so far: 5.0
If we subtract 790 from 913, we get 123.
Bring next digit (8) of the dividend behind the 123 and repeat the process: 1238 / 158

Going ahead to step 4:
The number 158 fits into 1238 7 times, leaving a remainder of 132.
Use 7 as the next digit of our solution. 
Result so far: 57.0
Subtract 1106 from 1238 to get 132.
Fetch the next digit (7) from the dividend, attach it to 132 and continue: 1327 / 158

Advancing to step 5:
1327 divided by 158 is 8 with a remainder of 63.
The next digit of our result is 8. 
Result so far: 578.0
Subtract 1264 from 1327 to get 63.
Fetch the next digit (5) from the dividend, attach it to 63 and continue: 635 / 158

Advancing to step 6:
The number 158 fits into 635 4 times, leaving a remainder of 3.
Put 4 as the next digit of the answer. 
Result so far: 5784.0
Subtract 632 from 635 to get 3.
Take the next digit (7) from the dividend and append it to 3, then repeat: 37 / 158

Moving on to step 7:
158 can be fit into 37 0 times, resulting in a remainder of 37.
The next digit of our result is 0. 
Result so far: 57840.0
If we subtract 0 from 37, we get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Advancing to step 8:
158 can be fit into 370 2 times, resulting in a remainder of 54.
Record the quotient 2 as the next digit in the result. 
Result so far: 57840.2
If we subtract 316 from 370, we get 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

On to step 9:
When dividing 540 by 158, we get 3 with a remainder of 66.
Record the quotient 3 as the next digit in the result. 
Result so far: 57840.23
The remainder is 66 after subtracting 474 from 540.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

Advancing to step 10:
158 can be fit into 660 4 times, resulting in a remainder of 28.
Write down 4 as next digit of the result. 
Result so far: 57840.234
Subtract 632 from 660 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 11:
The number 158 fits into 280 1 times, leaving a remainder of 122.
Put 1 as the next digit of the answer. 
Result so far: 57840.2341
Subtract 158 from 280 to get 122.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1220, and continue the process.

Going ahead to step 12:
The number 158 fits into 1220 7 times, leaving a remainder of 114.
The number 7 becomes the next digit in our result. 
Result so far: 57840.23417
Deduct 1106 from 1220 and we're left with 114.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1140, and continue the process.

Moving on to step 13:
The number 158 fits into 1140 7 times, leaving a remainder of 34.
The number 7 becomes the next digit in our result. 
Result so far: 57840.234177
Subtracting 1106 from 1140 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.

The final outcome is 57840.234177, with a leftover of 3.4e-06.