We look at the division of 158234 by 50 
The aim is to understand the frequency of 50 in 158234.

On to step 1:
If we divide 1 by 50, we get 0 and a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 50

Let's proceed to step 2:
The number 50 fits into 15 0 times, leaving a remainder of 15.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 15, we end up with 15.
Take the next digit (8) from the dividend and append it to 15, then repeat: 158 / 50

Step 3:
When dividing 158 by 50, we get 3 with a remainder of 8.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
Deduct 150 from 158 and we're left with 8.
Bring next digit (2) of the dividend behind the 8 and repeat the process: 82 / 50

Advancing to step 4:
When dividing 82 by 50, we get 1 with a remainder of 32.
Put 1 as the next digit of the answer. 
Result so far: 31.0
If we take 50 away from 82, we end up with 32.
Grab the next digit (3) from the dividend, add it to 32, then carry on: 323 / 50

Moving on to step 5:
323 divided by 50 is 6 with a remainder of 23.
Record the quotient 6 as the next digit in the result. 
Result so far: 316.0
If we subtract 300 from 323, we get 23.
Grab the next digit (4) from the dividend, add it to 23, then carry on: 234 / 50

Step 6:
234 divided by 50 is 4 with a remainder of 34.
The next digit of our result is 4. 
Result so far: 3164.0
If we take 200 away from 234, 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.

Going ahead to step 7:
The number 50 fits into 340 6 times, leaving a remainder of 40.
Use 6 as the next digit of our solution. 
Result so far: 3164.6
Deduct 300 from 340 and we're left with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Moving on to step 8:
When dividing 400 by 50, we get 8 with a remainder of 0.
Put 8 as the next digit of the answer. 
Result so far: 3164.68
Subtract 400 from 400 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 9:
The number 50 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 3164.68
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 10:
If we divide 0 by 50, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 3164.68
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 3164.68, with a leftover of 0.0.